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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/console/command-line-api-expected.txt

Issue 2975523002: DevTools: add console test helpers to new test runner & migrate a console test (Closed)
Patch Set: fix Created 3 years, 5 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: third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/console/command-line-api-expected.txt
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/console/command-line-api-expected.txt b/third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/console/command-line-api-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b82911a895a87ab17c6891ee2b2aa20101ba9c8c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/console/command-line-api-expected.txt
@@ -0,0 +1,39 @@
+Tests that command line api works.
+
+
+String($0)
+"[object HTMLParagraphElement]"
+
+$3
+undefined
+
+String(keys([3,4]))
+"0,1"
+
+String(values([3,4]))
+"3,4"
+
+String($('#foo'))
+"[object HTMLParagraphElement]"
+
+String($('#foo', document.body))
+"[object HTMLParagraphElement]"
+
+String($('#foo', 'non-node'))
+"[object HTMLParagraphElement]"
+
+String($('#foo', $('#bar')))
+"null"
+
+String($$('p'))
+"[object HTMLParagraphElement],[object HTMLParagraphElement]"
+
+String($$('p', document.body))
+"[object HTMLParagraphElement],[object HTMLParagraphElement]"
+
+String($('foo'))
+"null"
+
+console.assert(keys(window).indexOf('__commandLineAPI') === -1)
+undefined
+

Powered by Google App Engine
This is Rietveld 408576698