Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update web-platform-tests to revision 790e6601ee8b4b412b6ad9f6fde466b…
…7ccb9cb7e
- Loading branch information
1 parent
52205e8
commit 5c72c1e
Showing
6 changed files
with
72 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
tests/wpt/metadata/css/css-values/vh_not_refreshing_on_chrome.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[vh_not_refreshing_on_chrome.html] | ||
expected: FAIL |
5 changes: 5 additions & 0 deletions
5
tests/wpt/mozilla/meta/webgl/conformance-1.0.3/conformance/canvas/rapid-resizing.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[rapid-resizing.html] | ||
expected: TIMEOUT | ||
[Overall test] | ||
expected: NOTRUN | ||
|
19 changes: 19 additions & 0 deletions
19
...form-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue-value.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>CSSUnitValue.value</title> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssunitvalue"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<body> | ||
<div id="log"></div> | ||
<script> | ||
'use strict'; | ||
|
||
test(() => { | ||
const result = new CSSUnitValue(-3.14, 'px'); | ||
result.value = 3.14; | ||
assert_equals(result.value, 3.14, 'value reflects new value'); | ||
assert_equals(result.unit, 'px', 'unit does not change'); | ||
}, 'CSSUnitValue.value can be updated to a different value'); | ||
|
||
</script> |
32 changes: 32 additions & 0 deletions
32
...b-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>CSSUnitValue Constructor</title> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssunitvalue-cssunitvalue"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../../resources/testhelper.js"></script> | ||
<body> | ||
<div id="log"></div> | ||
<script> | ||
'use strict'; | ||
|
||
test(() => { | ||
assert_throws(new TypeError(), () => new CSSUnitValue(0, 'lemon')); | ||
}, 'Constructing CSSUnitValue with an unknown unit throws a TypeError'); | ||
|
||
test(() => { | ||
assert_throws(new TypeError(), () => new CSSUnitValue(0, '')); | ||
}, 'Constructing CSSUnitValue with a empty string unit throws a TypeError'); | ||
|
||
for (const unit of gValidUnits) { | ||
test(() => { | ||
const result = new CSSUnitValue(-3.14, unit); | ||
assert_not_equals(result, null, 'a CSSUnitValue is created'); | ||
assert_equals(result.value, -3.14, | ||
'value is same as given by constructor'); | ||
assert_equals(result.unit, unit.toLowerCase(), | ||
'unit is same as given by constructor'); | ||
}, 'CSSUnitValue can be constructed with ' + unit); | ||
} | ||
|
||
</script> |
30 changes: 0 additions & 30 deletions
30
...-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue.tentative.html
This file was deleted.
Oops, something went wrong.