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

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

Issue 21006006: Add forEach() to CSSVariablesMap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Corrected test expectations 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-foreach-expected.txt
diff --git a/LayoutTests/fast/css/variables/cssom-foreach-expected.txt b/LayoutTests/fast/css/variables/cssom-foreach-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d221bb4ae87c57aa42435c853b0b9de391da9f0f
--- /dev/null
+++ b/LayoutTests/fast/css/variables/cssom-foreach-expected.txt
@@ -0,0 +1,24 @@
+This tests basic calling of forEach on a CSSVariablesMap object.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS div.style.var.forEach() threw exception TypeError: Not enough arguments.
+PASS div.style.var.forEach("Not a function.") threw exception TypeError: Type error.
+
+Test calling forEach without thisArg specified:
+PASS log[0] is "[object CSSVariablesMap], a: apple, this == [object Window]"
+PASS log[1] is "[object CSSVariablesMap], b: banana, this == [object Window]"
+PASS log[2] is "[object CSSVariablesMap], c: carrot, this == [object Window]"
+PASS log.length is 3
+
+Test calling forEach with thisArg specified:
+PASS log[0] is "[object CSSVariablesMap], a: apple, this == {\"test\":\"pass\"}"
+PASS log[1] is "[object CSSVariablesMap], b: banana, this == {\"test\":\"pass\"}"
+PASS log[2] is "[object CSSVariablesMap], c: carrot, this == {\"test\":\"pass\"}"
+PASS log.length is 3
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698