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

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: 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-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..7d58af720409ba931a3eba75e933782420f2dc98
--- /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: Failed to execute 'forEach' on 'CSSVariablesMap': 1 argument required, but only 0 present..
+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
+
« no previous file with comments | « LayoutTests/fast/css/variables/cssom-foreach.html ('k') | LayoutTests/fast/css/variables/cssom-foreach-update.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698