| Index: third_party/WebKit/LayoutTests/inspector/console/console-worker-nested-imports-syntax-error.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-eval-fake.html b/third_party/WebKit/LayoutTests/inspector/console/console-worker-nested-imports-syntax-error.html
|
| similarity index 57%
|
| copy from third_party/WebKit/LayoutTests/inspector/console/console-eval-fake.html
|
| copy to third_party/WebKit/LayoutTests/inspector/console/console-worker-nested-imports-syntax-error.html
|
| index e838a93110ad1fc214d1ea994f85f0afeb9aac45..5d7cd4accfa2eb4693a7aab18ef60c2994e2b5c3 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/console/console-eval-fake.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/console/console-worker-nested-imports-syntax-error.html
|
| @@ -3,13 +3,15 @@
|
| <script src="../../http/tests/inspector/inspector-test.js"></script>
|
| <script src="../../http/tests/inspector/console-test.js"></script>
|
| <script>
|
| -var foo = 'fooValue';
|
| -
|
| -window.eval = "Non-function";
|
| +function startWorker()
|
| +{
|
| + var worker = new Worker("resources/importScripts-1.js");
|
| +}
|
|
|
| function test()
|
| {
|
| - InspectorTest.evaluateInConsole("foo", step1);
|
| + InspectorTest.waitForConsoleMessages(1, step1);
|
| + InspectorTest.evaluateInPage("startWorker();");
|
|
|
| function step1()
|
| {
|
| @@ -17,13 +19,12 @@ function test()
|
| InspectorTest.completeTest();
|
| }
|
| }
|
| +
|
| </script>
|
| </head>
|
| -
|
| <body onload="runTest()">
|
| <p>
|
| -Tests that overriding window.eval does not break inspector.
|
| +Tests that nested import scripts in worker show correct stack on syntax error.
|
| </p>
|
| -
|
| </body>
|
| </html>
|
|
|