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

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-eval-object-literal.html

Issue 1511043002: [DevTools] Evaluate expression like { ... } as Object Literal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-eval-object-literal-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/console/console-eval-object-literal.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-eval-object-literal.html b/third_party/WebKit/LayoutTests/inspector/console/console-eval-object-literal.html
new file mode 100644
index 0000000000000000000000000000000000000000..afa3fd3323873bab3bbdc89a6626eb73e2479249
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-eval-object-literal.html
@@ -0,0 +1,29 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/console-test.js"></script>
+<script>
+function test()
+{
+ var commands = ["{a:1, b:2}", "{a:1}", "{var a = 1; eval(\"{a :1, b:2 }\");}", "{ for (var i = 0; i < 5; ++i); }"];
+ var current = -1;
+ loopOverCommands();
+ function loopOverCommands()
+ {
+ ++current;
+ if (current < commands.length) {
+ InspectorTest.evaluateInConsole(commands[current], loopOverCommands);
+ } else {
+ InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames();
+ InspectorTest.completeTest();
+ }
+ }
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>
+Tests that evaluating object literal in the console correctly reported.
+</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-eval-object-literal-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698