mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1439477 [wpt PR 9580] - [css-typed-om] Remove StylePropertyMap.getProperties()., a=testonly
Automatic update from web-platform-tests[css-typed-om] Remove StylePropertyMap.getProperties(). This patch removes StylePropertyMap.getProperties() as it is the same as StylePropertyMap.keys(). Bug: 545318 Change-Id: Ib31c70478306f415c4c184e1b2148f35759f58c4 Reviewed-on: https://chromium-review.googlesource.com/925883 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by: nainar <nainar@chromium.org> Cr-Commit-Position: refs/heads/master@{#538033} wpt-commits: eb5d88a3f712661c75c0f1ba051c06e97d43de1a wpt-pr: 9580 wpt-commits: eb5d88a3f712661c75c0f1ba051c06e97d43de1a wpt-pr: 9580
This commit is contained in:
parent
7a3f4ebe30
commit
6d55e4e90c
@ -315633,12 +315633,6 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/computed/getProperties.tentative.html": [
|
||||
[
|
||||
"/css/css-typed-om/the-stylepropertymap/computed/getProperties.tentative.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/computed/has.tentative.html": [
|
||||
[
|
||||
"/css/css-typed-om/the-stylepropertymap/computed/has.tentative.html",
|
||||
@ -315699,12 +315693,6 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/declared/getProperties.tentative.html": [
|
||||
[
|
||||
"/css/css-typed-om/the-stylepropertymap/declared/getProperties.tentative.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/declared/has.tentative.html": [
|
||||
[
|
||||
"/css/css-typed-om/the-stylepropertymap/declared/has.tentative.html",
|
||||
@ -315765,12 +315753,6 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/inline/getProperties.tentative.html": [
|
||||
[
|
||||
"/css/css-typed-om/the-stylepropertymap/inline/getProperties.tentative.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/inline/has.tentative.html": [
|
||||
[
|
||||
"/css/css-typed-om/the-stylepropertymap/inline/has.tentative.html",
|
||||
@ -501957,7 +501939,7 @@
|
||||
"support"
|
||||
],
|
||||
"css/css-paint-api/registered-properties-in-custom-paint.https.html": [
|
||||
"de1e6dabe19bdd355060a62c7d697c64f49929fe",
|
||||
"dc51ea1e448fc91b632363d5ea394f5a4a90bd06",
|
||||
"reftest"
|
||||
],
|
||||
"css/css-paint-api/resources/html5.png": [
|
||||
@ -501969,7 +501951,7 @@
|
||||
"support"
|
||||
],
|
||||
"css/css-paint-api/style-background-image.https.html": [
|
||||
"c3359a8ee23b9c3d9007066235aef894ddbaf47f",
|
||||
"18660b13079289c93431e7ca6111d1c6c7adca80",
|
||||
"reftest"
|
||||
],
|
||||
"css/css-paint-api/style-before-pseudo-ref.html": [
|
||||
@ -501977,7 +501959,7 @@
|
||||
"support"
|
||||
],
|
||||
"css/css-paint-api/style-before-pseudo.https.html": [
|
||||
"cd16dfc6e532851b23abdf47cb4cc89f20a6c655",
|
||||
"a46f84e13e91ea23129a557893fcb929d6e191ed",
|
||||
"reftest"
|
||||
],
|
||||
"css/css-paint-api/style-first-letter-pseudo-ref.html": [
|
||||
@ -501985,7 +501967,7 @@
|
||||
"support"
|
||||
],
|
||||
"css/css-paint-api/style-first-letter-pseudo.https.html": [
|
||||
"996d9f2e93bc8ba0a54415d0ffcab4cdb7c1ffa7",
|
||||
"180ec110178f0cf9635b19309abb416e79ebf135",
|
||||
"reftest"
|
||||
],
|
||||
"css/css-paint-api/valid-image-after-load-ref.html": [
|
||||
@ -519397,7 +519379,7 @@
|
||||
"testharness"
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/computed/computed.tentative.html": [
|
||||
"460bdf5cc3e35360eb8d910274cef440837f0eaf",
|
||||
"23845856ad2da4422dc081dd8f4cc1a5d6aecfe3",
|
||||
"testharness"
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/computed/get-invalid.html": [
|
||||
@ -519412,10 +519394,6 @@
|
||||
"2c9c39367ccf02f014b8bf62057f810a70ff58bf",
|
||||
"testharness"
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/computed/getProperties.tentative.html": [
|
||||
"9e0018aed64fbca86d25f5ec466f88212ebd4906",
|
||||
"testharness"
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/computed/has.tentative.html": [
|
||||
"b7b16ab44745e235883303b8c495aa1ceb874d0c",
|
||||
"testharness"
|
||||
@ -519433,7 +519411,7 @@
|
||||
"testharness"
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/declared/declared.tentative.html": [
|
||||
"7a6bbc1b04f6d1ee82332ddbf58a27604645a86b",
|
||||
"9ea176173ce999d17f26a80fc05b608532e471e0",
|
||||
"testharness"
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/declared/delete-invalid.html": [
|
||||
@ -519456,10 +519434,6 @@
|
||||
"df90a13e37ebcdbcf046e66f7e90ad2fc7edd9df",
|
||||
"testharness"
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/declared/getProperties.tentative.html": [
|
||||
"7cb65bf76de24fe33a48178f5193bc05c5ec3f44",
|
||||
"testharness"
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/declared/has.tentative.html": [
|
||||
"3299b5537f2d535988f2f6dac65b3eaba63833b2",
|
||||
"testharness"
|
||||
@ -519500,10 +519474,6 @@
|
||||
"2a8c50a83cbfd1c3da5614daac7070df0f5c83ff",
|
||||
"testharness"
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/inline/getProperties.tentative.html": [
|
||||
"5187e1eb4fb23b6b9a7fba8130d2649c4ea9152e",
|
||||
"testharness"
|
||||
],
|
||||
"css/css-typed-om/the-stylepropertymap/inline/has.tentative.html": [
|
||||
"89b6d05db8717f1bc1f82690706d849a57104ec7",
|
||||
"testharness"
|
||||
|
@ -28,7 +28,7 @@ registerPaint('geometry', class {
|
||||
];
|
||||
}
|
||||
paint(ctx, geom, styleMap) {
|
||||
const properties = styleMap.getProperties().sort();
|
||||
const properties = [...styleMap.keys()].sort();
|
||||
var serializedStrings = [];
|
||||
for (let i = 0; i < properties.length; i++) {
|
||||
const value = styleMap.get(properties[i]);
|
||||
|
@ -29,7 +29,7 @@ registerPaint('geometry', class {
|
||||
];
|
||||
}
|
||||
paint(ctx, geom, styleMap) {
|
||||
const properties = styleMap.getProperties().sort();
|
||||
const properties = [...styleMap.keys()].sort();
|
||||
var serializedStrings = [];
|
||||
for (let i = 0; i < properties.length; i++) {
|
||||
const value = styleMap.get(properties[i]);
|
||||
|
@ -32,7 +32,7 @@ registerPaint('geometry', class {
|
||||
];
|
||||
}
|
||||
paint(ctx, geom, styleMap) {
|
||||
const properties = styleMap.getProperties().sort();
|
||||
const properties = [...styleMap.keys()].sort();
|
||||
var serializedStrings = [];
|
||||
for (let i = 0; i < properties.length; i++) {
|
||||
const value = styleMap.get(properties[i]);
|
||||
|
@ -28,7 +28,7 @@ registerPaint('geometry', class {
|
||||
];
|
||||
}
|
||||
paint(ctx, geom, styleMap) {
|
||||
const properties = styleMap.getProperties().sort();
|
||||
const properties = [...styleMap.keys()].sort();
|
||||
var serializedStrings = [];
|
||||
for (let i = 0; i < properties.length; i++) {
|
||||
const value = styleMap.get(properties[i]);
|
||||
|
@ -15,11 +15,9 @@
|
||||
const target = document.getElementById('target');
|
||||
const styleMap = target.computedStyleMap();
|
||||
|
||||
// FIXME(crbug.com/788904): Test currently fails because the 'content' property returns
|
||||
// incorrect initial CSS value.
|
||||
test(() => {
|
||||
const computedStyle = [...getComputedStyle(target)].sort();
|
||||
const properties = styleMap.getProperties();
|
||||
const properties = [...styleMap.keys()];
|
||||
|
||||
// Two extra entries for custom properties
|
||||
assert_equals(properties.length, computedStyle.length + 2);
|
||||
|
@ -1,18 +0,0 @@
|
||||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>StylePropertyMap.getProperties tests</title>
|
||||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-getproperties">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="../../resources/testhelper.js"></script>
|
||||
<body>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
test(t => {
|
||||
const styleMap = createComputedStyleMap(t, '--A: A; width: 0px; --C: C; transition-duration: 1s, 2s; color: red; --B: B;');
|
||||
const expectedProperties = [...getComputedStyle(document.body)].sort().concat('--A', '--B', '--C');
|
||||
assert_array_equals(styleMap.getProperties(), expectedProperties);
|
||||
}, 'StylePropertyMap.getProperties returns property names in correct order');
|
||||
|
||||
</script>
|
@ -31,7 +31,7 @@ const target = document.getElementById('target');
|
||||
const styleMap = document.styleSheets[0].rules[0].styleMap;
|
||||
|
||||
test(() => {
|
||||
const properties = styleMap.getProperties();
|
||||
const properties = [...styleMap.keys()];
|
||||
assert_array_equals(properties, ['height', 'transition-duration', 'width', '--foo']);
|
||||
}, 'Declared StylePropertyMap only contains properties in the style rule');
|
||||
|
||||
|
@ -1,23 +0,0 @@
|
||||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>StylePropertyMap.getProperties tests</title>
|
||||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-getproperties">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="../../resources/testhelper.js"></script>
|
||||
<body>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
test(t => {
|
||||
const styleMap = createDeclaredStyleMap(t, '');
|
||||
assert_array_equals(styleMap.getProperties(), []);
|
||||
}, 'Calling StylePropertyMap.getProperties on an empty property model returns a zero-length array');
|
||||
|
||||
test(t => {
|
||||
const styleMap = createDeclaredStyleMap(t, '--A: A; width: 0px; --C: C; transition-duration: 1s, 2s; color: red; --B: B;');
|
||||
assert_array_equals(styleMap.getProperties(),
|
||||
['color', 'transition-duration', 'width', '--A', '--B', '--C']);
|
||||
}, 'StylePropertyMap.getProperties returns CSS properties in alphabetical order then custom properties by codepoint');
|
||||
|
||||
</script>
|
@ -1,23 +0,0 @@
|
||||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>StylePropertyMap.getProperties tests</title>
|
||||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-getproperties">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="../../resources/testhelper.js"></script>
|
||||
<body>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
test(t => {
|
||||
const styleMap = createInlineStyleMap(t, '');
|
||||
assert_array_equals(styleMap.getProperties(), []);
|
||||
}, 'Calling StylePropertyMap.getProperties on an empty property model returns a zero-length array');
|
||||
|
||||
test(t => {
|
||||
const styleMap = createInlineStyleMap(t, '--A: A; width: 0px; --C: C; transition-duration: 1s, 2s; color: red; --B: B;');
|
||||
assert_array_equals(styleMap.getProperties(),
|
||||
['color', 'transition-duration', 'width', '--A', '--B', '--C']);
|
||||
}, 'StylePropertyMap.getProperties returns property names in correct order');
|
||||
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user