Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: LayoutTests/fast/css/variables/cssom-computed-style-expected.txt

Issue 21006006: Add forEach() to CSSVariablesMap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and review changes Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/variables/cssom-computed-style-expected.txt
diff --git a/LayoutTests/fast/css/variables/cssom-computed-style-expected.txt b/LayoutTests/fast/css/variables/cssom-computed-style-expected.txt
index 431b453c3eed52ffebd90fa454b3329960a95d1f..9fcc5d3217e9324cf17528550930930c9b5e59c2 100644
--- a/LayoutTests/fast/css/variables/cssom-computed-style-expected.txt
+++ b/LayoutTests/fast/css/variables/cssom-computed-style-expected.txt
@@ -1,14 +1,27 @@
-Computed variables declaration: [object CSSVariablesMap]
-Create variable: NoModificationAllowedError: Failed to set the 'create' property on a computed 'CSSStyleDeclaration': computed styles are read-only.
-Count variables: 3
-Count empty variables: 0
-Read stylesheet variable: pass
-Read inherited variable: pass
-Read inline variable: pass
-Read non-existent variable: pass
-Update variable: NoModificationAllowedError: Failed to set the 'inline' property on a computed 'CSSStyleDeclaration': computed styles are read-only.
-Delete variable: Not deleted
-Clear variables: NoModificationAllowedError: Failed to clear variables from a computed 'CSSStyleDeclaration': computed styles are read-only.
-Set cssText: NoModificationAllowedError: Failed to set the 'cssText' property on a computed 'CSSStyleDeclaration': computed styles are read-only.
-Read deleted variable: pass
+This tests Javascript access to CSS variables via getComputedStyle.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS computedStyle.var.toString() is "[object CSSVariablesMap]"
+PASS computedStyle.var === computedStyle.var is true
+PASS computedStyle.var.set("create", "test") threw exception NoModificationAllowedError: Failed to set the 'create' property on a computed 'CSSStyleDeclaration': computed styles are read-only..
+PASS computedStyle.var.size is 3
+PASS computedBodyStyle.var.size is 0
+PASS computedStyle.var.get("stylesheet") is "pass"
+PASS computedStyle.var.get("inherited") is "pass"
+PASS computedStyle.var.get("inline") is "pass"
+PASS computedBodyStyle.var.get("non-existent") is ""
+PASS forEachIterations[0] is ["pass", "inherited", "[object CSSVariablesMap]"]
+PASS forEachIterations[1] is ["pass", "inline", "[object CSSVariablesMap]"]
+PASS forEachIterations[2] is ["pass", "stylesheet", "[object CSSVariablesMap]"]
+PASS forEachIterations.length is 3
+PASS emptyVarForEachIterations.length is 0
+PASS computedStyle.var.set("inline", "fail") threw exception NoModificationAllowedError: Failed to set the 'inline' property on a computed 'CSSStyleDeclaration': computed styles are read-only..
+PASS computedStyle.var.clear() threw exception NoModificationAllowedError: Failed to clear variables from a computed 'CSSStyleDeclaration': computed styles are read-only..
+PASS computedStyle.var.delete("inline") is false
+PASS computedStyle.var.get("inline") is "pass"
+PASS successfullyParsed is true
+
+TEST COMPLETE
« no previous file with comments | « LayoutTests/fast/css/variables/cssom-computed-style.html ('k') | LayoutTests/fast/css/variables/cssom-foreach.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698