Index: third_party/WebKit/LayoutTests/inspector-protocol/console/console-memory-setter-in-strict-mode.html |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-with-context-id-equal-zero.html b/third_party/WebKit/LayoutTests/inspector-protocol/console/console-memory-setter-in-strict-mode.html |
similarity index 51% |
copy from third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-with-context-id-equal-zero.html |
copy to third_party/WebKit/LayoutTests/inspector-protocol/console/console-memory-setter-in-strict-mode.html |
index e2e2b98a9809975a6db6e9a48f59d077ffee0398..9340da42f3b2b857e9b40e198afacc66a8ab8349 100644 |
--- a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-with-context-id-equal-zero.html |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/console/console-memory-setter-in-strict-mode.html |
@@ -5,9 +5,9 @@ |
function test() |
{ |
- InspectorTest.sendCommand("Runtime.evaluate", { "contextId": 0, "expression": "" }, evaluateCallback); |
+ InspectorTest.sendCommand("Runtime.evaluate", { expression: "\"use strict\"\nconsole.memory = {};undefined" }, dumpResult); |
- function evaluateCallback(result) |
+ function dumpResult(result) |
{ |
result.id = 0; |
InspectorTest.logObject(result); |
@@ -16,7 +16,5 @@ function test() |
} |
</script> |
</head> |
-<body onLoad="runTest();"> |
-Tests that DevTools doesn't crash on Runtime.evaluate with contextId equals 0. |
-</body> |
+<body onload="runTest()">Tests checks that console.memory property can be set in strict mode (crbug.com/468611).</body> |
</html> |