Changeset 268961 in webkit
- Timestamp:
- Oct 25, 2020, 2:43:54 PM (6 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 11 added
- 3 deleted
- 12 edited
-
ChangeLog (modified) (1 diff)
-
imported/w3c/ChangeLog (modified) (1 diff)
-
imported/w3c/resources/resource-files.json (modified) (1 diff)
-
imported/w3c/web-platform-tests/css/cssom/CSS.html (deleted)
-
imported/w3c/web-platform-tests/css/cssom/CSSCounterStyleRule-expected.txt (added)
-
imported/w3c/web-platform-tests/css/cssom/CSSCounterStyleRule.html (added)
-
imported/w3c/web-platform-tests/css/cssom/CSSFontFaceRule-expected.txt (added)
-
imported/w3c/web-platform-tests/css/cssom/CSSFontFaceRule.html (added)
-
imported/w3c/web-platform-tests/css/cssom/CSSStyleSheet-constructable-disallow-import.tentative-expected.txt (modified) (1 diff)
-
imported/w3c/web-platform-tests/css/cssom/CSSStyleSheet-constructable-disallow-import.tentative.html (modified) (2 diffs)
-
imported/w3c/web-platform-tests/css/cssom/css-style-attr-decl-block.html (modified) (1 diff)
-
imported/w3c/web-platform-tests/css/cssom/cssimportrule.html (modified) (1 diff)
-
imported/w3c/web-platform-tests/css/cssom/escape.html (modified) (1 diff)
-
imported/w3c/web-platform-tests/css/cssom/getComputedStyle-resolved-colors-expected.txt (added)
-
imported/w3c/web-platform-tests/css/cssom/getComputedStyle-resolved-colors.html (added)
-
imported/w3c/web-platform-tests/css/cssom/medialist-interfaces-003-expected.txt (deleted)
-
imported/w3c/web-platform-tests/css/cssom/medialist-interfaces-003.html (deleted)
-
imported/w3c/web-platform-tests/css/cssom/mediaquery-sort-dedup-expected.txt (added)
-
imported/w3c/web-platform-tests/css/cssom/mediaquery-sort-dedup.html (added)
-
imported/w3c/web-platform-tests/css/cssom/removerule-invalidation-crash.html (added)
-
imported/w3c/web-platform-tests/css/cssom/rule-restrictions-expected.txt (added)
-
imported/w3c/web-platform-tests/css/cssom/rule-restrictions.html (added)
-
imported/w3c/web-platform-tests/css/cssom/serialize-media-rule-expected.txt (modified) (1 diff)
-
imported/w3c/web-platform-tests/css/cssom/serialize-media-rule.html (modified) (1 diff)
-
imported/w3c/web-platform-tests/css/cssom/w3c-import.log (modified) (3 diffs)
-
tests-options.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r268958 r268961 1 2020-10-25 Emilio Cobos Álvarez <emilio@crisal.io> 2 3 Update CSSOM WPT tests. 4 https://bugs.webkit.org/show_bug.cgi?id=218157 5 6 Reviewed by Simon Fraser. 7 8 * tests-options.json: 9 1 10 2020-10-25 Zalan Bujtas <zalan@apple.com> 2 11 -
trunk/LayoutTests/imported/w3c/ChangeLog
r268928 r268961 1 2020-10-25 Emilio Cobos Álvarez <emilio@crisal.io> 2 3 Update CSSOM WPT tests. 4 https://bugs.webkit.org/show_bug.cgi?id=218157 5 6 Reviewed by Simon Fraser. 7 8 * resources/resource-files.json: 9 * web-platform-tests/css/cssom/CSS.html: Removed. 10 * web-platform-tests/css/cssom/CSSCounterStyleRule-expected.txt: Added. 11 * web-platform-tests/css/cssom/CSSCounterStyleRule.html: Added. 12 * web-platform-tests/css/cssom/CSSFontFaceRule-expected.txt: Added. 13 * web-platform-tests/css/cssom/CSSFontFaceRule.html: Added. 14 * web-platform-tests/css/cssom/CSSStyleSheet-constructable-disallow-import.tentative-expected.txt: 15 * web-platform-tests/css/cssom/CSSStyleSheet-constructable-disallow-import.tentative.html: 16 * web-platform-tests/css/cssom/css-style-attr-decl-block.html: 17 * web-platform-tests/css/cssom/cssimportrule.html: 18 * web-platform-tests/css/cssom/escape.html: 19 * web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt: 20 * web-platform-tests/css/cssom/getComputedStyle-detached-subtree.html: 21 * web-platform-tests/css/cssom/getComputedStyle-resolved-colors-expected.txt: Added. 22 * web-platform-tests/css/cssom/getComputedStyle-resolved-colors.html: Added. 23 * web-platform-tests/css/cssom/medialist-interfaces-003-expected.txt: Removed. 24 * web-platform-tests/css/cssom/medialist-interfaces-003.html: Removed. 25 * web-platform-tests/css/cssom/mediaquery-sort-dedup-expected.txt: Added. 26 * web-platform-tests/css/cssom/mediaquery-sort-dedup.html: Added. 27 * web-platform-tests/css/cssom/removerule-invalidation-crash.html: Added. 28 * web-platform-tests/css/cssom/rule-restrictions-expected.txt: Added. 29 * web-platform-tests/css/cssom/rule-restrictions.html: Added. 30 * web-platform-tests/css/cssom/serialize-media-rule-expected.txt: 31 * web-platform-tests/css/cssom/serialize-media-rule.html: 32 * web-platform-tests/css/cssom/w3c-import.log: 33 1 34 2020-10-23 Diego Pino Garcia <dpino@igalia.com> 2 35 -
trunk/LayoutTests/imported/w3c/resources/resource-files.json
r268735 r268961 784 784 "web-platform-tests/css/css-writing-modes/vertical-alignment-vrl-020.xht", 785 785 "web-platform-tests/css/cssom-view/iframe.html", 786 "web-platform-tests/css/cssom/removerule-invalidation-crash.html", 786 787 "web-platform-tests/css/cssom/support/xmlss-pi.xhtml", 787 788 "web-platform-tests/css/mediaqueries/media-queries-001.xht", -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom/CSSStyleSheet-constructable-disallow-import.tentative-expected.txt
r265749 r268961 1 CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: Illegal constructor2 3 Harness Error (FAIL), message = Unhandled rejection: Illegal constructor4 1 5 2 FAIL Inserting an @import rule through insertRule on a constructed stylesheet throws an exception assert_throws_dom: function "() => { (new CSSStyleSheet).insertRule(import_text) }" threw object "TypeError: Illegal constructor" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12 6 TIMEOUT @import rules should not trigger any loads. Test timed out 3 FAIL @import rules should not trigger any loads. promise_test: Unhandled rejection with value: object "TypeError: Illegal constructor" 7 4 FAIL @import rules are not parsed in CSSStyleSheet.replace Illegal constructor 8 5 FAIL @import rules are not parsed in CSSStyleSheet.replaceSync Illegal constructor 9 6 10 Harness Error (FAIL), message = Unhandled rejection: Illegal constructor11 12 FAIL Inserting an @import rule through insertRule on a constructed stylesheet throws an exception assert_throws_dom: function "() => { (new CSSStyleSheet).insertRule(import_text) }" threw object "TypeError: Illegal constructor" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 1213 TIMEOUT @import rules should not trigger any loads. Test timed out14 FAIL @import rules are not parsed in CSSStyleSheet.replace Illegal constructor15 FAIL @import rules are not parsed in CSSStyleSheet.replaceSync Illegal constructor16 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom/CSSStyleSheet-constructable-disallow-import.tentative.html
r264522 r268961 22 22 }, 'Inserting an @import rule through insertRule on a constructed stylesheet throws an exception'); 23 23 24 async_test(async t => {24 promise_test(async t => { 25 25 const importUrl = "support/constructable-import.css"; 26 26 const sheet = new CSSStyleSheet(); … … 33 33 34 34 let link = document.createElement("link"); 35 t.add_cleanup(() => { link.remove(); }); 35 36 link.rel = "stylesheet"; 36 37 link.href = importUrl; 37 38 38 link.addEventListener("error", t.unreached_func("Load shouldn't fail")); 39 link.addEventListener("load", t.step_func_done(event => { 40 let entries = window.performance.getEntriesByType('resource').filter(entry => entry.name.includes(importUrl)); 41 assert_equals(entries.length, 1, "There should be only one entry for the import URL"); 42 assert_greater_than_equal(entries[0].startTime, timeAfterImportsInvoked, "The entry's start time should be after all throws"); 43 link.remove(); 44 })); 45 document.body.appendChild(link); 39 await new Promise((resolve, reject) => { 40 link.addEventListener("load", resolve); 41 link.addEventListener("error", reject); 42 document.body.appendChild(link); 43 }); 44 45 let entries = window.performance.getEntriesByType('resource').filter(entry => entry.name.includes(importUrl)); 46 assert_equals(entries.length, 1, "There should be only one entry for the import URL"); 47 assert_greater_than_equal(entries[0].startTime, timeAfterImportsInvoked, "The entry's start time should be after all throws"); 46 48 }, "@import rules should not trigger any loads.") 47 49 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom/css-style-attr-decl-block.html
r264522 r268961 93 93 function assert_no_record(action) { 94 94 let records = observer.takeRecords(); 95 assert_ true(records.length ==0, "expect no record after " + action);95 assert_equals(records.length, 0, "expect no record after " + action); 96 96 } 97 97 style.setProperty("z-index", "invalid"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom/cssimportrule.html
r232903 r268961 96 96 test(function() { 97 97 var ruleWithPage = ruleList[3]; 98 ruleWithPage.style = " background-color: green;"99 assert_equals(ruleWithPage.style.cssText, " background-color: green;");98 ruleWithPage.style = "margin-top: 10px;" 99 assert_equals(ruleWithPage.style.cssText, "margin-top: 10px;"); 100 100 }, "CSSStyleDeclaration cssText attribute should be updated due to [PutForwards]"); 101 101 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom/escape.html
r264522 r268961 86 86 assert_equals(CSS.escape('ABCDEFGHIJKLMNOPQRSTUVWXYZ'), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'); 87 87 88 assert_equals(CSS.escape("hello\\world"), "hello\\\\world", "Backslashes get backslash-escaped"); 89 assert_equals(CSS.escape("hello\u{1234}world"), "hello\u{1234}world", "Code points greater than U+0080 are preserved"); 90 assert_equals(CSS.escape("-"), "\\-", "CSS.escape: Single dash escaped"); 91 88 92 assert_equals(CSS.escape('\x20\x21\x78\x79'), '\\ \\!xy'); 89 93 }, "Various tests"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom/serialize-media-rule-expected.txt
r264522 r268961 8 8 FAIL features - character case normalization assert_equals: expected "@media screen and (color) {\n}" but got "@media screen and (color) { \n}" 9 9 FAIL features - preservation of overspecified features assert_equals: expected "@media print and (max-width: 23px) and (max-width: 45px) {\n}" but got "@media print and (max-width: 23px) and (max-width: 45px) { \n}" 10 FAIL features - lexicographical sorting assert_equals: expected "@media screen and (color) and (max-width: 0px) {\n}" but got "@media screen and (color) and (max-width: 0px) { \n}"10 FAIL features - no lexicographical sorting assert_equals: expected "@media screen and (color) and (max-width: 0px) {\n}" but got "@media screen and (color) and (max-width: 0px) { \n}" 11 11 FAIL media query list assert_equals: expected "@media screen and (max-width: 0px), screen and (color) {\n}" but got "@media screen and (max-width: 0px), screen and (color) { \n}" 12 12 FAIL one rule assert_equals: expected "@media print {\n #foo { z-index: 23; float: left; }\n}" but got "@media print { \n #foo { z-index: 23; float: left; }\n}" -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom/serialize-media-rule.html
r264522 r268961 133 133 assert_equals( 134 134 sheet.cssRules[1].cssText, 135 '@media screen and ( color) and (max-width: 0px) {\n}'135 '@media screen and (max-width: 0px) and (color) {\n}' 136 136 ); 137 }, 'features - lexicographical sorting');137 }, 'features - no lexicographical sorting'); 138 138 139 139 test(function(t) { -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom/w3c-import.log
r265294 r268961 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/CSS-namespace-object-class-string.html 18 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/CSS.html 18 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/CSSCounterStyleRule.html 19 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/CSSFontFaceRule.html 19 20 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/CSSGroupingRule-cssRules.html 20 21 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/CSSGroupingRule-insertRule.html … … 105 106 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-property-order.html 106 107 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-pseudo.html 108 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-resolved-colors.html 107 109 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-resolved-min-max-clamping.html 108 110 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-sticky-pos-percent.html … … 122 124 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/medialist-interfaces-001.html 123 125 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/medialist-interfaces-002.html 124 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/medialist-interfaces-003.html125 126 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/medialist-interfaces-004.html 127 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/mediaquery-sort-dedup.html 126 128 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/overflow-serialization.html 127 129 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/preferred-stylesheet-order.html 128 130 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/preferred-stylesheet-reversed-order.html 131 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/removerule-invalidation-crash.html 132 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/rule-restrictions.html 129 133 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/selectorSerialize.html 130 134 /LayoutTests/imported/w3c/web-platform-tests/css/cssom/selectorText-modification-restyle-001-expected.html -
trunk/LayoutTests/tests-options.json
r267531 r268961 690 690 "slow" 691 691 ], 692 "imported/w3c/web-platform-tests/css/cssom/idlharness.html": [ 693 "slow" 694 ], 692 695 "imported/w3c/web-platform-tests/dom/events/Event-dispatch-on-disabled-elements.html": [ 693 696 "slow"
Note:
See TracChangeset
for help on using the changeset viewer.