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> |