Commit 26dfae3a authored by Chris Nardi's avatar Chris Nardi Committed by Commit Bot

Upstream registerProperty tests to WPT

Many tests of CSS.registerProperty were written, but none have been
upstreamed to WPT. Upstream these tests to ensure interoperability.

Bug: 641877
Change-Id: I8272b14c78cb75bb6f5f3cedb770091cbcba522a
Reviewed-on: https://chromium-review.googlesource.com/959422Reviewed-by: default avatarRobert Ma <robertma@chromium.org>
Reviewed-by: default avatarIan Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Chris Nardi <cnardi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542649}
parent c78d12f5
...@@ -69,8 +69,6 @@ css-parser/font-size-adjust.html ...@@ -69,8 +69,6 @@ css-parser/font-size-adjust.html
custom-elements/array-squat-crash.html custom-elements/array-squat-crash.html
custom-elements/imports/upgrade-order.html custom-elements/imports/upgrade-order.html
custom-elements/spec/state-failed-create.html custom-elements/spec/state-failed-create.html
custom-properties/register-property.html
custom-properties/var-reference-registered-properties.html
device_orientation/motion/add-listener-from-callback.html device_orientation/motion/add-listener-from-callback.html
device_orientation/orientation/create-event.html device_orientation/orientation/create-event.html
dom/attr/parent-adopt-node.html dom/attr/parent-adopt-node.html
...@@ -157,6 +155,8 @@ external/wpt/css/cssom/cssom-cssText-serialize.html ...@@ -157,6 +155,8 @@ external/wpt/css/cssom/cssom-cssText-serialize.html
external/wpt/css/cssom/medialist-interfaces-004.html external/wpt/css/cssom/medialist-interfaces-004.html
external/wpt/css/cssom-view/cssom-view/media-query-list-interface.xht external/wpt/css/cssom-view/cssom-view/media-query-list-interface.xht
external/wpt/css/cssom-view/cssom-view-window-screen-interface.html external/wpt/css/cssom-view/cssom-view-window-screen-interface.html
external/wpt/css/css-properties-values-api/register-property.html
external/wpt/css/css-properties-values-api/var-reference-registered-properties.html
external/wpt/css/cssom-view/ttwf-scrollintoview.html external/wpt/css/cssom-view/ttwf-scrollintoview.html
external/wpt/css/css-timing/cubic-bezier-timing-functions-output.html external/wpt/css/css-timing/cubic-bezier-timing-functions-output.html
external/wpt/css/css-timing/frames-timing-functions-output.html external/wpt/css/css-timing/frames-timing-functions-output.html
......
This is a testharness.js-based test. This is a testharness.js-based test.
Found 121 tests; 120 PASS, 1 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS syntax:'*', initialValue:'a' is valid PASS syntax:'*', initialValue:'a' is valid
PASS syntax:' * ', initialValue:'b' is valid PASS syntax:' * ', initialValue:'b' is valid
PASS syntax:'<length>', initialValue:'2px' is valid PASS syntax:'<length>', initialValue:'2px' is valid
......
<!DOCTYPE HTML> <!DOCTYPE HTML>
<script src="../resources/testharness.js"></script> <link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#dom-css-registerproperty" />
<script src="../resources/testharnessreport.js"></script> <link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#supported-syntax-strings" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script> <script>
test_count = 0; test_count = 0;
......
<!DOCTYPE HTML> <!DOCTYPE HTML>
<script src="../resources/testharness.js"></script> <link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#register-a-custom-property" />
<script src="../resources/testharnessreport.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script> <script>
// Tests for error checking during property registration // Tests for error checking during property registration
......
<!DOCTYPE HTML> <!DOCTYPE HTML>
<script src="../resources/testharness.js"></script> <link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#dom-propertydescriptor-inherits" />
<script src="../resources/testharnessreport.js"></script> <link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#register-a-custom-property" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style> <style>
#outer { #outer {
--inherited-length-1: 10px; --inherited-length-1: 10px;
......
<!DOCTYPE HTML> <!DOCTYPE HTML>
<script src="../resources/testharness.js"></script> <link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#calculation-of-computed-values" />
<script src="../resources/testharnessreport.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style> <style>
#divWithFontSizeSet, #parentDiv { #divWithFontSizeSet, #parentDiv {
......
<!DOCTYPE HTML> <!DOCTYPE HTML>
<script src="../resources/testharness.js"></script> <link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#dom-css-registerproperty" />
<script src="../resources/testharnessreport.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style> <style>
#inner { #inner {
......
<!DOCTYPE HTML> <!DOCTYPE HTML>
<script src="../resources/testharness.js"></script> <link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#dom-propertydescriptor-initialvalue" />
<script src="../resources/testharnessreport.js"></script> <link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#register-a-custom-property" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style> <style>
#target { #target {
background: var(--inherited-color); background: var(--inherited-color);
......
<!DOCTYPE HTML> <!DOCTYPE HTML>
<script src="../resources/testharness.js"></script> <link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#dom-css-registerproperty" />
<script src="../resources/testharnessreport.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style> <style>
#test1 { #test1 {
......
<!DOCTYPE HTML> <!DOCTYPE HTML>
<script src="../resources/testharness.js"></script> <link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api/#dom-css-registerproperty" />
<script src="../resources/testharnessreport.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style> <style>
div { div {
--registered-length-1: 10px; --registered-length-1: 10px;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment