Commit 074f0c4a authored by lushnikov's avatar lushnikov Committed by Commit bot

DevTools: add more tests to fixate bindings behavior

NetworkProject's cleanup logic currently relies on resources in
resourceTreeFrame. This patch adds tests with scripts and
stylesheets which don't have underlying resource:
- contentscript-* tests validate bindings creating and removing
  UISourceCodes for content scripts
- dynamic-* tests validate bindings creating and removing
  UISourceCodes for dynamically-created styles

As a drive-by, the patch improves the InspectorTest.dumpWorkspace()
method to also produce a diff with the previous workspace dump.
This helps to read expectations a lot.

R=dgozman
BUG=670180

Review-Url: https://codereview.chromium.org/2738033002
Cr-Commit-Position: refs/heads/master@{#455973}
parent 5d6f151a
...@@ -2,6 +2,7 @@ Verify that UISourceCodes are added and removed as iframe gets attached and deta ...@@ -2,6 +2,7 @@ Verify that UISourceCodes are added and removed as iframe gets attached and deta
Running: dumpInitialWorkspace Running: dumpInitialWorkspace
Removed: 0 uiSourceCodes
Workspace: 7 uiSourceCodes. Workspace: 7 uiSourceCodes.
debugger:///VM[XXX] bindings-frame-attach-detach.html debugger:///VM[XXX] bindings-frame-attach-detach.html
debugger:///VM[XXX] bindings-frame-attach-detach.html debugger:///VM[XXX] bindings-frame-attach-detach.html
...@@ -12,22 +13,27 @@ Workspace: 7 uiSourceCodes. ...@@ -12,22 +13,27 @@ Workspace: 7 uiSourceCodes.
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
Running: attachFrame Running: attachFrame
Removed: 0 uiSourceCodes
Workspace: 13 uiSourceCodes. Workspace: 13 uiSourceCodes.
debugger:///VM[XXX] bindings-frame-attach-detach.html debugger:///VM[XXX] bindings-frame-attach-detach.html
debugger:///VM[XXX] bindings-frame-attach-detach.html debugger:///VM[XXX] bindings-frame-attach-detach.html
debugger:///VM[XXX] bindings-test.js debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] inspector-test.js debugger:///VM[XXX] inspector-test.js
debugger:///VM[XXX] magic-script.js [+] debugger:///VM[XXX] magic-script.js
debugger:///VM[XXX] _test_attachFrame.js [+] debugger:///VM[XXX] _test_attachFrame.js
http://127.0.0.1:8000/inspector/bindings/bindings-frame-attach-detach.html http://127.0.0.1:8000/inspector/bindings/bindings-frame-attach-detach.html
http://127.0.0.1:8000/inspector/bindings/bindings-test.js http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html [+] http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html
http://127.0.0.1:8000/inspector/bindings/resources/magic-script.js [+] http://127.0.0.1:8000/inspector/bindings/resources/magic-script.js
http://127.0.0.1:8000/inspector/bindings/resources/magic-style.css [+] http://127.0.0.1:8000/inspector/bindings/resources/magic-style.css
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
_test_attachFrame.js [+] _test_attachFrame.js
Running: detachFrame Running: detachFrame
Removed: 3 uiSourceCodes
[-] http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html
[-] http://127.0.0.1:8000/inspector/bindings/resources/magic-script.js
[-] http://127.0.0.1:8000/inspector/bindings/resources/magic-style.css
Workspace: 12 uiSourceCodes. Workspace: 12 uiSourceCodes.
debugger:///VM[XXX] bindings-frame-attach-detach.html debugger:///VM[XXX] bindings-frame-attach-detach.html
debugger:///VM[XXX] bindings-frame-attach-detach.html debugger:///VM[XXX] bindings-frame-attach-detach.html
...@@ -35,10 +41,10 @@ Workspace: 12 uiSourceCodes. ...@@ -35,10 +41,10 @@ Workspace: 12 uiSourceCodes.
debugger:///VM[XXX] inspector-test.js debugger:///VM[XXX] inspector-test.js
debugger:///VM[XXX] magic-script.js debugger:///VM[XXX] magic-script.js
debugger:///VM[XXX] _test_attachFrame.js debugger:///VM[XXX] _test_attachFrame.js
debugger:///VM[XXX] _test_detachFrame.js [+] debugger:///VM[XXX] _test_detachFrame.js
http://127.0.0.1:8000/inspector/bindings/bindings-frame-attach-detach.html http://127.0.0.1:8000/inspector/bindings/bindings-frame-attach-detach.html
http://127.0.0.1:8000/inspector/bindings/bindings-test.js http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
_test_attachFrame.js _test_attachFrame.js
_test_detachFrame.js [+] _test_detachFrame.js
...@@ -8,15 +8,15 @@ ...@@ -8,15 +8,15 @@
async function test() async function test()
{ {
InspectorTest.markStep('dumpInitialWorkspace'); InspectorTest.markStep('dumpInitialWorkspace');
InspectorTest.dumpWorkspace(); var snapshot = InspectorTest.dumpWorkspace();
InspectorTest.markStep('attachFrame'); InspectorTest.markStep('attachFrame');
await InspectorTest.attachFrame('frame', './resources/magic-frame.html', '_test_attachFrame.js'); await InspectorTest.attachFrame('frame', './resources/magic-frame.html', '_test_attachFrame.js');
InspectorTest.dumpWorkspace(); snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.markStep('detachFrame'); InspectorTest.markStep('detachFrame');
await InspectorTest.detachFrame('frame', '_test_detachFrame.js'); await InspectorTest.detachFrame('frame', '_test_detachFrame.js');
InspectorTest.dumpWorkspace(); snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.completeTest(); InspectorTest.completeTest();
} }
......
...@@ -3,6 +3,7 @@ Verify that UISourceCodes are removed as the frame gets navigated. ...@@ -3,6 +3,7 @@ Verify that UISourceCodes are removed as the frame gets navigated.
Running: dumpInitialWorkspace Running: dumpInitialWorkspace
Removed: 0 uiSourceCodes
Workspace: 7 uiSourceCodes. Workspace: 7 uiSourceCodes.
debugger:///VM[XXX] bindings-frame-navigate.html debugger:///VM[XXX] bindings-frame-navigate.html
debugger:///VM[XXX] bindings-frame-navigate.html debugger:///VM[XXX] bindings-frame-navigate.html
...@@ -13,22 +14,27 @@ Workspace: 7 uiSourceCodes. ...@@ -13,22 +14,27 @@ Workspace: 7 uiSourceCodes.
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
Running: attachFrame Running: attachFrame
Removed: 0 uiSourceCodes
Workspace: 13 uiSourceCodes. Workspace: 13 uiSourceCodes.
debugger:///VM[XXX] bindings-frame-navigate.html debugger:///VM[XXX] bindings-frame-navigate.html
debugger:///VM[XXX] bindings-frame-navigate.html debugger:///VM[XXX] bindings-frame-navigate.html
debugger:///VM[XXX] bindings-test.js debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] inspector-test.js debugger:///VM[XXX] inspector-test.js
debugger:///VM[XXX] magic-script.js [+] debugger:///VM[XXX] magic-script.js
debugger:///VM[XXX] _test_attachFrame.js [+] debugger:///VM[XXX] _test_attachFrame.js
http://127.0.0.1:8000/inspector/bindings/bindings-frame-navigate.html http://127.0.0.1:8000/inspector/bindings/bindings-frame-navigate.html
http://127.0.0.1:8000/inspector/bindings/bindings-test.js http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html [+] http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html
http://127.0.0.1:8000/inspector/bindings/resources/magic-script.js [+] http://127.0.0.1:8000/inspector/bindings/resources/magic-script.js
http://127.0.0.1:8000/inspector/bindings/resources/magic-style.css [+] http://127.0.0.1:8000/inspector/bindings/resources/magic-style.css
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
_test_attachFrame.js [+] _test_attachFrame.js
Running: navigateFrame Running: navigateFrame
Removed: 3 uiSourceCodes
[-] http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html
[-] http://127.0.0.1:8000/inspector/bindings/resources/magic-script.js
[-] http://127.0.0.1:8000/inspector/bindings/resources/magic-style.css
Workspace: 13 uiSourceCodes. Workspace: 13 uiSourceCodes.
debugger:///VM[XXX] bindings-frame-navigate.html debugger:///VM[XXX] bindings-frame-navigate.html
debugger:///VM[XXX] bindings-frame-navigate.html debugger:///VM[XXX] bindings-frame-navigate.html
...@@ -36,11 +42,11 @@ Workspace: 13 uiSourceCodes. ...@@ -36,11 +42,11 @@ Workspace: 13 uiSourceCodes.
debugger:///VM[XXX] inspector-test.js debugger:///VM[XXX] inspector-test.js
debugger:///VM[XXX] magic-script.js debugger:///VM[XXX] magic-script.js
debugger:///VM[XXX] _test_attachFrame.js debugger:///VM[XXX] _test_attachFrame.js
debugger:///VM[XXX] _test_navigateFrame [+] debugger:///VM[XXX] _test_navigateFrame
http://127.0.0.1:8000/inspector/bindings/bindings-frame-navigate.html http://127.0.0.1:8000/inspector/bindings/bindings-frame-navigate.html
http://127.0.0.1:8000/inspector/bindings/bindings-test.js http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/resources/empty-frame.html [+] http://127.0.0.1:8000/inspector/bindings/resources/empty-frame.html
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
_test_attachFrame.js _test_attachFrame.js
_test_navigateFrame [+] _test_navigateFrame
...@@ -8,15 +8,15 @@ ...@@ -8,15 +8,15 @@
async function test() async function test()
{ {
InspectorTest.markStep('dumpInitialWorkspace'); InspectorTest.markStep('dumpInitialWorkspace');
InspectorTest.dumpWorkspace(); var snapshot = InspectorTest.dumpWorkspace();
InspectorTest.markStep('attachFrame'); InspectorTest.markStep('attachFrame');
await InspectorTest.attachFrame('frame', './resources/magic-frame.html', '_test_attachFrame.js'); await InspectorTest.attachFrame('frame', './resources/magic-frame.html', '_test_attachFrame.js');
InspectorTest.dumpWorkspace(); snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.markStep('navigateFrame'); InspectorTest.markStep('navigateFrame');
await InspectorTest.navigateFrame('frame', './resources/empty-frame.html', '_test_navigateFrame'); await InspectorTest.navigateFrame('frame', './resources/empty-frame.html', '_test_navigateFrame');
InspectorTest.dumpWorkspace(); snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.completeTest(); InspectorTest.completeTest();
} }
......
...@@ -2,6 +2,7 @@ Verify that UISourceCodes are removed as main frame gets navigated. ...@@ -2,6 +2,7 @@ Verify that UISourceCodes are removed as main frame gets navigated.
Running: dumpInitialWorkspace Running: dumpInitialWorkspace
Removed: 0 uiSourceCodes
Workspace: 7 uiSourceCodes. Workspace: 7 uiSourceCodes.
debugger:///VM[XXX] bindings-main-frame-navigated.html debugger:///VM[XXX] bindings-main-frame-navigated.html
debugger:///VM[XXX] bindings-main-frame-navigated.html debugger:///VM[XXX] bindings-main-frame-navigated.html
...@@ -12,28 +13,45 @@ Workspace: 7 uiSourceCodes. ...@@ -12,28 +13,45 @@ Workspace: 7 uiSourceCodes.
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
Running: attachFrame Running: attachFrame
Removed: 0 uiSourceCodes
Workspace: 15 uiSourceCodes. Workspace: 15 uiSourceCodes.
debugger:///VM[XXX] bindings-main-frame-navigated.html debugger:///VM[XXX] bindings-main-frame-navigated.html
debugger:///VM[XXX] bindings-main-frame-navigated.html debugger:///VM[XXX] bindings-main-frame-navigated.html
debugger:///VM[XXX] bindings-test.js debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] inspector-test.js debugger:///VM[XXX] inspector-test.js
debugger:///VM[XXX] sourcemap-script.js [+] debugger:///VM[XXX] sourcemap-script.js
debugger:///VM[XXX] _test_attachFrame.js [+] debugger:///VM[XXX] _test_attachFrame.js
http://127.0.0.1:8000/inspector/bindings/bindings-main-frame-navigated.html http://127.0.0.1:8000/inspector/bindings/bindings-main-frame-navigated.html
http://127.0.0.1:8000/inspector/bindings/bindings-test.js http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-frame.html [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-frame.html
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-script.js [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-script.js
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-style.css [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-style.css
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-typescript.ts [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-typescript.ts
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
_test_attachFrame.js [+] _test_attachFrame.js
Running: navigateMainFrame Running: navigateMainFrame
Page reloaded. Page reloaded.
Removed: 15 uiSourceCodes
[-] debugger:///VM[XXX] bindings-main-frame-navigated.html
[-] debugger:///VM[XXX] bindings-main-frame-navigated.html
[-] debugger:///VM[XXX] bindings-test.js
[-] debugger:///VM[XXX] inspector-test.js
[-] debugger:///VM[XXX] sourcemap-script.js
[-] debugger:///VM[XXX] _test_attachFrame.js
[-] http://127.0.0.1:8000/inspector/bindings/bindings-main-frame-navigated.html
[-] http://127.0.0.1:8000/inspector/bindings/bindings-test.js
[-] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-frame.html
[-] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss
[-] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-script.js
[-] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-style.css
[-] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-typescript.ts
[-] http://127.0.0.1:8000/inspector/inspector-test.js
[-] _test_attachFrame.js
Workspace: 2 uiSourceCodes. Workspace: 2 uiSourceCodes.
debugger:///VM[XXX] empty-page.html [+] debugger:///VM[XXX] empty-page.html
http://127.0.0.1:8000/inspector/bindings/resources/empty-page.html [+] http://127.0.0.1:8000/inspector/bindings/resources/empty-page.html
Running: navigateBack Running: navigateBack
Page reloaded. Page reloaded.
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
async function test() async function test()
{ {
InspectorTest.markStep('dumpInitialWorkspace'); InspectorTest.markStep('dumpInitialWorkspace');
InspectorTest.dumpWorkspace(); var snapshot = InspectorTest.dumpWorkspace();
InspectorTest.markStep('attachFrame'); InspectorTest.markStep('attachFrame');
await Promise.all([ await Promise.all([
...@@ -16,12 +16,12 @@ async function test() ...@@ -16,12 +16,12 @@ async function test()
InspectorTest.waitForSourceMap('sourcemap-script.js.map'), InspectorTest.waitForSourceMap('sourcemap-script.js.map'),
InspectorTest.waitForSourceMap('sourcemap-style.css.map'), InspectorTest.waitForSourceMap('sourcemap-style.css.map'),
]); ]);
InspectorTest.dumpWorkspace(); snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.markStep('navigateMainFrame'); InspectorTest.markStep('navigateMainFrame');
var url = "http://127.0.0.1:8000/inspector/bindings/resources/empty-page.html"; var url = "http://127.0.0.1:8000/inspector/bindings/resources/empty-page.html";
await InspectorTest.navigatePromise(url); await InspectorTest.navigatePromise(url);
InspectorTest.dumpWorkspace(); snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.markStep('navigateBack'); InspectorTest.markStep('navigateBack');
var originalUrl = "http://127.0.0.1:8000/inspector/bindings/bindings-main-frame-navigated.html"; var originalUrl = "http://127.0.0.1:8000/inspector/bindings/bindings-main-frame-navigated.html";
......
...@@ -2,6 +2,7 @@ Verify that UISourceCodes are removed as iframes are getting detached. ...@@ -2,6 +2,7 @@ Verify that UISourceCodes are removed as iframes are getting detached.
Running: initialWorkspace Running: initialWorkspace
Removed: 0 uiSourceCodes
Workspace: 7 uiSourceCodes. Workspace: 7 uiSourceCodes.
debugger:///VM[XXX] bindings-multiple-frames.html debugger:///VM[XXX] bindings-multiple-frames.html
debugger:///VM[XXX] bindings-multiple-frames.html debugger:///VM[XXX] bindings-multiple-frames.html
...@@ -12,28 +13,33 @@ Workspace: 7 uiSourceCodes. ...@@ -12,28 +13,33 @@ Workspace: 7 uiSourceCodes.
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
Running: createIframes Running: createIframes
Removed: 0 uiSourceCodes
Workspace: 19 uiSourceCodes. Workspace: 19 uiSourceCodes.
debugger:///VM[XXX] bindings-multiple-frames.html debugger:///VM[XXX] bindings-multiple-frames.html
debugger:///VM[XXX] bindings-multiple-frames.html debugger:///VM[XXX] bindings-multiple-frames.html
debugger:///VM[XXX] bindings-test.js debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] inspector-test.js debugger:///VM[XXX] inspector-test.js
debugger:///VM[XXX] magic-script.js [+] debugger:///VM[XXX] magic-script.js
debugger:///VM[XXX] magic-script.js [+] debugger:///VM[XXX] magic-script.js
debugger:///VM[XXX] _test_create-iframe1.js [+] debugger:///VM[XXX] _test_create-iframe1.js
debugger:///VM[XXX] _test_create-iframe2.js [+] debugger:///VM[XXX] _test_create-iframe2.js
http://127.0.0.1:8000/inspector/bindings/bindings-multiple-frames.html http://127.0.0.1:8000/inspector/bindings/bindings-multiple-frames.html
http://127.0.0.1:8000/inspector/bindings/bindings-test.js http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html [+] http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html
http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html [+] http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html
http://127.0.0.1:8000/inspector/bindings/resources/magic-script.js [+] http://127.0.0.1:8000/inspector/bindings/resources/magic-script.js
http://127.0.0.1:8000/inspector/bindings/resources/magic-script.js [+] http://127.0.0.1:8000/inspector/bindings/resources/magic-script.js
http://127.0.0.1:8000/inspector/bindings/resources/magic-style.css [+] http://127.0.0.1:8000/inspector/bindings/resources/magic-style.css
http://127.0.0.1:8000/inspector/bindings/resources/magic-style.css [+] http://127.0.0.1:8000/inspector/bindings/resources/magic-style.css
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
_test_create-iframe1.js [+] _test_create-iframe1.js
_test_create-iframe2.js [+] _test_create-iframe2.js
Running: detachFrame1 Running: detachFrame1
Removed: 3 uiSourceCodes
[-] http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html
[-] http://127.0.0.1:8000/inspector/bindings/resources/magic-script.js
[-] http://127.0.0.1:8000/inspector/bindings/resources/magic-style.css
Workspace: 18 uiSourceCodes. Workspace: 18 uiSourceCodes.
debugger:///VM[XXX] bindings-multiple-frames.html debugger:///VM[XXX] bindings-multiple-frames.html
debugger:///VM[XXX] bindings-multiple-frames.html debugger:///VM[XXX] bindings-multiple-frames.html
...@@ -43,7 +49,7 @@ Workspace: 18 uiSourceCodes. ...@@ -43,7 +49,7 @@ Workspace: 18 uiSourceCodes.
debugger:///VM[XXX] magic-script.js debugger:///VM[XXX] magic-script.js
debugger:///VM[XXX] _test_create-iframe1.js debugger:///VM[XXX] _test_create-iframe1.js
debugger:///VM[XXX] _test_create-iframe2.js debugger:///VM[XXX] _test_create-iframe2.js
debugger:///VM[XXX] _test_detachFrame1.js [+] debugger:///VM[XXX] _test_detachFrame1.js
http://127.0.0.1:8000/inspector/bindings/bindings-multiple-frames.html http://127.0.0.1:8000/inspector/bindings/bindings-multiple-frames.html
http://127.0.0.1:8000/inspector/bindings/bindings-test.js http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html
...@@ -52,9 +58,13 @@ Workspace: 18 uiSourceCodes. ...@@ -52,9 +58,13 @@ Workspace: 18 uiSourceCodes.
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
_test_create-iframe1.js _test_create-iframe1.js
_test_create-iframe2.js _test_create-iframe2.js
_test_detachFrame1.js [+] _test_detachFrame1.js
Running: detachFrame2 Running: detachFrame2
Removed: 3 uiSourceCodes
[-] http://127.0.0.1:8000/inspector/bindings/resources/magic-frame.html
[-] http://127.0.0.1:8000/inspector/bindings/resources/magic-script.js
[-] http://127.0.0.1:8000/inspector/bindings/resources/magic-style.css
Workspace: 17 uiSourceCodes. Workspace: 17 uiSourceCodes.
debugger:///VM[XXX] bindings-multiple-frames.html debugger:///VM[XXX] bindings-multiple-frames.html
debugger:///VM[XXX] bindings-multiple-frames.html debugger:///VM[XXX] bindings-multiple-frames.html
...@@ -65,12 +75,12 @@ Workspace: 17 uiSourceCodes. ...@@ -65,12 +75,12 @@ Workspace: 17 uiSourceCodes.
debugger:///VM[XXX] _test_create-iframe1.js debugger:///VM[XXX] _test_create-iframe1.js
debugger:///VM[XXX] _test_create-iframe2.js debugger:///VM[XXX] _test_create-iframe2.js
debugger:///VM[XXX] _test_detachFrame1.js debugger:///VM[XXX] _test_detachFrame1.js
debugger:///VM[XXX] _test_detachFrame2.js [+] debugger:///VM[XXX] _test_detachFrame2.js
http://127.0.0.1:8000/inspector/bindings/bindings-multiple-frames.html http://127.0.0.1:8000/inspector/bindings/bindings-multiple-frames.html
http://127.0.0.1:8000/inspector/bindings/bindings-test.js http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
_test_create-iframe1.js _test_create-iframe1.js
_test_create-iframe2.js _test_create-iframe2.js
_test_detachFrame1.js _test_detachFrame1.js
_test_detachFrame2.js [+] _test_detachFrame2.js
...@@ -7,22 +7,22 @@ ...@@ -7,22 +7,22 @@
async function test() async function test()
{ {
InspectorTest.markStep('initialWorkspace'); InspectorTest.markStep('initialWorkspace');
InspectorTest.dumpWorkspace(); var snapshot = InspectorTest.dumpWorkspace();
InspectorTest.markStep('createIframes'); InspectorTest.markStep('createIframes');
await Promise.all([ await Promise.all([
InspectorTest.attachFrame('frame1', './resources/magic-frame.html', '_test_create-iframe1.js'), InspectorTest.attachFrame('frame1', './resources/magic-frame.html', '_test_create-iframe1.js'),
InspectorTest.attachFrame('frame2', './resources/magic-frame.html', '_test_create-iframe2.js'), InspectorTest.attachFrame('frame2', './resources/magic-frame.html', '_test_create-iframe2.js'),
]); ]);
InspectorTest.dumpWorkspace(); snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.markStep('detachFrame1'); InspectorTest.markStep('detachFrame1');
await InspectorTest.detachFrame('frame1', '_test_detachFrame1.js'); await InspectorTest.detachFrame('frame1', '_test_detachFrame1.js');
InspectorTest.dumpWorkspace(); snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.markStep('detachFrame2'); InspectorTest.markStep('detachFrame2');
await InspectorTest.detachFrame('frame2', '_test_detachFrame2.js'); await InspectorTest.detachFrame('frame2', '_test_detachFrame2.js');
InspectorTest.dumpWorkspace(); snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.completeTest(); InspectorTest.completeTest();
} }
......
...@@ -2,7 +2,7 @@ var initialize_BindingsTest = function() { ...@@ -2,7 +2,7 @@ var initialize_BindingsTest = function() {
InspectorTest.preloadModule("sources"); InspectorTest.preloadModule("sources");
InspectorTest.dumpWorkspace = function() { InspectorTest.dumpWorkspace = function(previousSnapshot) {
var uiSourceCodes = Workspace.workspace.uiSourceCodes().slice(); var uiSourceCodes = Workspace.workspace.uiSourceCodes().slice();
var urls = uiSourceCodes.map(code => code.url()); var urls = uiSourceCodes.map(code => code.url());
urls = urls.map(url => { urls = urls.map(url => {
...@@ -12,10 +12,37 @@ InspectorTest.dumpWorkspace = function() { ...@@ -12,10 +12,37 @@ InspectorTest.dumpWorkspace = function() {
}); });
urls.sort(String.caseInsensetiveComparator); urls.sort(String.caseInsensetiveComparator);
var isAdded = new Array(urls.length).fill(false);
var removedLines = [];
if (previousSnapshot) {
var diff = Diff.Diff.lineDiff(previousSnapshot, urls);
var removedEntries = diff.filter(entry => entry[0] === Diff.Diff.Operation.Delete).map(entry => entry[1]);
removedLines = [].concat.apply([], removedEntries);
var index = 0;
for (var entry of diff) {
if (entry[0] === Diff.Diff.Operation.Delete)
continue;
if (entry[0] === Diff.Diff.Operation.Equal) {
index += entry[1].length;
continue;
}
for (var line of entry[1])
isAdded[index++] = true;
}
var addedEntries = diff.filter(entry => entry[0] === Diff.Diff.Operation.Insert).map(entry => entry[1]);
addedLines = [].concat.apply([], addedEntries);
}
InspectorTest.addResult(`Removed: ${removedLines.length} uiSourceCodes`);
for (var url of removedLines)
InspectorTest.addResult('[-] ' + url);
InspectorTest.addResult(`Workspace: ${urls.length} uiSourceCodes.`); InspectorTest.addResult(`Workspace: ${urls.length} uiSourceCodes.`);
for (var url of urls) { for (var i = 0; i < urls.length; ++i) {
InspectorTest.addResult(' ' + url); var url = urls[i];
var prefix = isAdded[i] ? '[+] ' : ' ';
InspectorTest.addResult(prefix + url);
} }
return urls;
} }
InspectorTest.attachFrame = function(frameId, url, evalSourceURL) { InspectorTest.attachFrame = function(frameId, url, evalSourceURL) {
......
Verify that SourceMap bindings are generating UISourceCodes properly.
Running: initialWorkspace
Removed: 0 uiSourceCodes
Workspace: 7 uiSourceCodes.
debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] contentscripts-bindings-multiple-frames.html
debugger:///VM[XXX] contentscripts-bindings-multiple-frames.html
debugger:///VM[XXX] inspector-test.js
http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/contentscripts-bindings-multiple-frames.html
http://127.0.0.1:8000/inspector/inspector-test.js
Running: attachFrame1
Removed: 0 uiSourceCodes
Workspace: 13 uiSourceCodes.
[+] content-script-42.js
debugger:///VM[XXX] bindings-test.js
[+] debugger:///VM[XXX] content-script-42.js
[+] debugger:///VM[XXX] contentscript-frame.html
debugger:///VM[XXX] contentscripts-bindings-multiple-frames.html
debugger:///VM[XXX] contentscripts-bindings-multiple-frames.html
debugger:///VM[XXX] inspector-test.js
[+] debugger:///VM[XXX] _test_attachFrame1.js
http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/contentscripts-bindings-multiple-frames.html
[+] http://127.0.0.1:8000/inspector/bindings/resources/contentscript-frame.html
http://127.0.0.1:8000/inspector/inspector-test.js
[+] _test_attachFrame1.js
Running: attachFrame2
Removed: 0 uiSourceCodes
Workspace: 18 uiSourceCodes.
content-script-42.js
debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] content-script-42.js
[+] debugger:///VM[XXX] content-script-42.js
[+] debugger:///VM[XXX] contentscript-frame.html
debugger:///VM[XXX] contentscript-frame.html
debugger:///VM[XXX] contentscripts-bindings-multiple-frames.html
debugger:///VM[XXX] contentscripts-bindings-multiple-frames.html
debugger:///VM[XXX] inspector-test.js
debugger:///VM[XXX] _test_attachFrame1.js
[+] debugger:///VM[XXX] _test_attachFrame2.js
http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/contentscripts-bindings-multiple-frames.html
http://127.0.0.1:8000/inspector/bindings/resources/contentscript-frame.html
[+] http://127.0.0.1:8000/inspector/bindings/resources/contentscript-frame.html
http://127.0.0.1:8000/inspector/inspector-test.js
_test_attachFrame1.js
[+] _test_attachFrame2.js
Running: detachFrame1
Removed: 1 uiSourceCodes
[-] http://127.0.0.1:8000/inspector/bindings/resources/contentscript-frame.html
Workspace: 19 uiSourceCodes.
content-script-42.js
debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] content-script-42.js
debugger:///VM[XXX] content-script-42.js
debugger:///VM[XXX] contentscript-frame.html
debugger:///VM[XXX] contentscript-frame.html
debugger:///VM[XXX] contentscripts-bindings-multiple-frames.html
debugger:///VM[XXX] contentscripts-bindings-multiple-frames.html
debugger:///VM[XXX] inspector-test.js
debugger:///VM[XXX] _test_attachFrame1.js
debugger:///VM[XXX] _test_attachFrame2.js
[+] debugger:///VM[XXX] _test_detachFrame1.js
http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/contentscripts-bindings-multiple-frames.html
http://127.0.0.1:8000/inspector/bindings/resources/contentscript-frame.html
http://127.0.0.1:8000/inspector/inspector-test.js
_test_attachFrame1.js
_test_attachFrame2.js
[+] _test_detachFrame1.js
Running: detachFrame2
Removed: 1 uiSourceCodes
[-] http://127.0.0.1:8000/inspector/bindings/resources/contentscript-frame.html
Workspace: 20 uiSourceCodes.
content-script-42.js
debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] content-script-42.js
debugger:///VM[XXX] content-script-42.js
debugger:///VM[XXX] contentscript-frame.html
debugger:///VM[XXX] contentscript-frame.html
debugger:///VM[XXX] contentscripts-bindings-multiple-frames.html
debugger:///VM[XXX] contentscripts-bindings-multiple-frames.html
debugger:///VM[XXX] inspector-test.js
debugger:///VM[XXX] _test_attachFrame1.js
debugger:///VM[XXX] _test_attachFrame2.js
debugger:///VM[XXX] _test_detachFrame1.js
[+] debugger:///VM[XXX] _test_detachFrame2.js
http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/contentscripts-bindings-multiple-frames.html
http://127.0.0.1:8000/inspector/inspector-test.js
_test_attachFrame1.js
_test_attachFrame2.js
_test_detachFrame1.js
[+] _test_detachFrame2.js
<head>
<script src="../inspector-test.js"></script>
<script src="./bindings-test.js"></script>
<script>
async function test()
{
InspectorTest.markStep('initialWorkspace');
var snapshot = InspectorTest.dumpWorkspace();
InspectorTest.markStep('attachFrame1');
await InspectorTest.attachFrame('frame1', './resources/contentscript-frame.html', '_test_attachFrame1.js');
snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.markStep('attachFrame2');
await InspectorTest.attachFrame('frame2', './resources/contentscript-frame.html', '_test_attachFrame2.js');
snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.markStep('detachFrame1');
await InspectorTest.detachFrame('frame1', '_test_detachFrame1.js');
snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.markStep('detachFrame2');
await InspectorTest.detachFrame('frame2', '_test_detachFrame2.js');
snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.completeTest();
}
</script>
</head>
<body onload="runTest()">
<p>
Verify that SourceMap bindings are generating UISourceCodes properly.
</p>
</body>
Verify that SourceMap bindings are generating UISourceCodes properly.
Running: initialWorkspace
Running: attachFrame1
top
(no domain)
content-script-42.js
Running: attachFrame2
top
(no domain)
content-script-42.js
Running: detachFrame1
top
(no domain)
content-script-42.js
Running: detachFrame2
top
(no domain)
content-script-42.js
<head>
<script src="../inspector-test.js"></script>
<script src="./bindings-test.js"></script>
<script>
async function test()
{
var contentScriptsNavigator = new Sources.ContentScriptsNavigatorView();
contentScriptsNavigator.show(UI.inspectorView.element);
InspectorTest.markStep('initialWorkspace');
InspectorTest.dumpNavigatorView(contentScriptsNavigator, false);
InspectorTest.markStep('attachFrame1');
await InspectorTest.attachFrame('frame1', './resources/contentscript-frame.html', '_test_attachFrame1.js'),
InspectorTest.dumpNavigatorView(contentScriptsNavigator, false);
InspectorTest.markStep('attachFrame2');
await InspectorTest.attachFrame('frame2', './resources/contentscript-frame.html', '_test_attachFrame2.js'),
InspectorTest.dumpNavigatorView(contentScriptsNavigator, false);
InspectorTest.markStep('detachFrame1');
await InspectorTest.detachFrame('frame1', '_test_detachFrame1.js');
InspectorTest.dumpNavigatorView(contentScriptsNavigator, false);
InspectorTest.markStep('detachFrame2');
await InspectorTest.detachFrame('frame2', '_test_detachFrame2.js');
InspectorTest.dumpNavigatorView(contentScriptsNavigator, false);
InspectorTest.completeTest();
}
</script>
</head>
<body onload="runTest()">
<p>
Verify that SourceMap bindings are generating UISourceCodes properly.
</p>
</body>
Verify that UISourceCodes are added and removed as iframe with dynamic script and stylesheet is added and removed.
Running: dumpInitialWorkspace
Removed: 0 uiSourceCodes
Workspace: 7 uiSourceCodes.
debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] dynamic-bindings-frame-attach-detach.html
debugger:///VM[XXX] dynamic-bindings-frame-attach-detach.html
debugger:///VM[XXX] inspector-test.js
http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/dynamic-bindings-frame-attach-detach.html
http://127.0.0.1:8000/inspector/inspector-test.js
Running: attachFrame
Removed: 0 uiSourceCodes
Workspace: 14 uiSourceCodes.
debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] dynamic-bindings-frame-attach-detach.html
debugger:///VM[XXX] dynamic-bindings-frame-attach-detach.html
[+] debugger:///VM[XXX] dynamic-frame.html
[+] debugger:///VM[XXX] dynamic-script.js
debugger:///VM[XXX] inspector-test.js
[+] debugger:///VM[XXX] _test_attachFrame.js
[+] dynamic-script.js
[+] dynamic-style.css
http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/dynamic-bindings-frame-attach-detach.html
[+] http://127.0.0.1:8000/inspector/bindings/resources/dynamic-frame.html
http://127.0.0.1:8000/inspector/inspector-test.js
[+] _test_attachFrame.js
Running: detachFrame
Removed: 2 uiSourceCodes
[-] dynamic-style.css
[-] http://127.0.0.1:8000/inspector/bindings/resources/dynamic-frame.html
Workspace: 14 uiSourceCodes.
debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] dynamic-bindings-frame-attach-detach.html
debugger:///VM[XXX] dynamic-bindings-frame-attach-detach.html
debugger:///VM[XXX] dynamic-frame.html
debugger:///VM[XXX] dynamic-script.js
debugger:///VM[XXX] inspector-test.js
debugger:///VM[XXX] _test_attachFrame.js
[+] debugger:///VM[XXX] _test_detachFrame.js
dynamic-script.js
http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/dynamic-bindings-frame-attach-detach.html
http://127.0.0.1:8000/inspector/inspector-test.js
_test_attachFrame.js
[+] _test_detachFrame.js
<html>
<head>
<script src="../inspector-test.js"></script>
<script src="./bindings-test.js"></script>
<script>
async function test()
{
InspectorTest.markStep('dumpInitialWorkspace');
var snapshot = InspectorTest.dumpWorkspace();
InspectorTest.markStep('attachFrame');
await InspectorTest.attachFrame('frame', './resources/dynamic-frame.html', '_test_attachFrame.js');
snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.markStep('detachFrame');
await InspectorTest.detachFrame('frame', '_test_detachFrame.js');
snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.completeTest();
}
</script>
</head>
<body onload="runTest()">
<p>
Verify that UISourceCodes are added and removed as iframe with dynamic script
and stylesheet is added and removed.
</p>
</body>
</html>
Verify that navigator is rendered properly when frame with dynamic script and style is added and removed.
Running: dumpInitialNavigator
top
127.0.0.1:8000
inspector
bindings
dynamic-navigator-frame-attach-detach.html
bindings-test.js
inspector-test.js
Running: attachFrame
top
127.0.0.1:8000
inspector
bindings
dynamic-navigator-frame-attach-detach.html
bindings-test.js
inspector-test.js
frame (dynamic-frame.html)
127.0.0.1:8000
inspector/bindings/resources
dynamic-frame.html
(no domain)
dynamic-script.js
dynamic-style.css
Running: detachFrame
top
127.0.0.1:8000
inspector
bindings
dynamic-navigator-frame-attach-detach.html
bindings-test.js
inspector-test.js
<html>
<head>
<script src="../inspector-test.js"></script>
<script src="./bindings-test.js"></script>
<script>
async function test()
{
var sourcesNavigator = new Sources.SourcesNavigatorView();
sourcesNavigator.show(UI.inspectorView.element);
InspectorTest.markStep('dumpInitialNavigator');
InspectorTest.dumpNavigatorView(sourcesNavigator, false);
InspectorTest.markStep('attachFrame');
await InspectorTest.attachFrame('frame', './resources/dynamic-frame.html');
InspectorTest.dumpNavigatorView(sourcesNavigator, false);
InspectorTest.markStep('detachFrame');
await InspectorTest.detachFrame('frame');
InspectorTest.dumpNavigatorView(sourcesNavigator, false);
InspectorTest.completeTest();
}
</script>
</head>
<body onload="runTest()">
<p>
Verify that navigator is rendered properly when frame with dynamic script and
style is added and removed.
</p>
</body>
</html>
<script>
testRunner.evaluateScriptInIsolatedWorld(42, "42\n//# sourceURL=content-script-42.js");
</script>
<div>Hi, I'm a frame with content script</div>
<div>Hi, I'm a frame with dynamic script and stylesheet</div>
<script>
eval('window.foo = ()=>console.log("foo")\n//# sourceURL=dynamic-script.js');
var style = document.createElement('style');
style.textContent = 'div { color: blue; }\n/*# sourceURL=dynamic-style.css */';
document.body.appendChild(style);
</script>
...@@ -2,6 +2,7 @@ Verify that SourceMap bindings are generating UISourceCodes properly. ...@@ -2,6 +2,7 @@ Verify that SourceMap bindings are generating UISourceCodes properly.
Running: initialWorkspace Running: initialWorkspace
Removed: 0 uiSourceCodes
Workspace: 7 uiSourceCodes. Workspace: 7 uiSourceCodes.
debugger:///VM[XXX] bindings-test.js debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] inspector-test.js debugger:///VM[XXX] inspector-test.js
...@@ -12,31 +13,36 @@ Workspace: 7 uiSourceCodes. ...@@ -12,31 +13,36 @@ Workspace: 7 uiSourceCodes.
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
Running: createIframesAndWaitForSourceMaps Running: createIframesAndWaitForSourceMaps
Removed: 0 uiSourceCodes
Workspace: 22 uiSourceCodes. Workspace: 22 uiSourceCodes.
debugger:///VM[XXX] bindings-test.js debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] inspector-test.js debugger:///VM[XXX] inspector-test.js
debugger:///VM[XXX] sourcemap-bindings-multiple-frames.html debugger:///VM[XXX] sourcemap-bindings-multiple-frames.html
debugger:///VM[XXX] sourcemap-bindings-multiple-frames.html debugger:///VM[XXX] sourcemap-bindings-multiple-frames.html
debugger:///VM[XXX] sourcemap-script.js [+] debugger:///VM[XXX] sourcemap-script.js
debugger:///VM[XXX] sourcemap-script.js [+] debugger:///VM[XXX] sourcemap-script.js
debugger:///VM[XXX] _test_create-iframe1.js [+] debugger:///VM[XXX] _test_create-iframe1.js
debugger:///VM[XXX] _test_create-iframe2.js [+] debugger:///VM[XXX] _test_create-iframe2.js
http://127.0.0.1:8000/inspector/bindings/bindings-test.js http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-frame.html [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-frame.html
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-frame.html [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-frame.html
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-script.js [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-script.js
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-script.js [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-script.js
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-style.css [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-style.css
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-style.css [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-style.css
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-typescript.ts [+] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-typescript.ts
http://127.0.0.1:8000/inspector/bindings/sourcemap-bindings-multiple-frames.html http://127.0.0.1:8000/inspector/bindings/sourcemap-bindings-multiple-frames.html
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
_test_create-iframe1.js [+] _test_create-iframe1.js
_test_create-iframe2.js [+] _test_create-iframe2.js
Running: detachFrame1 Running: detachFrame1
Removed: 3 uiSourceCodes
[-] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-frame.html
[-] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-script.js
[-] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-style.css
Workspace: 21 uiSourceCodes. Workspace: 21 uiSourceCodes.
debugger:///VM[XXX] bindings-test.js debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] inspector-test.js debugger:///VM[XXX] inspector-test.js
...@@ -46,7 +52,7 @@ Workspace: 21 uiSourceCodes. ...@@ -46,7 +52,7 @@ Workspace: 21 uiSourceCodes.
debugger:///VM[XXX] sourcemap-script.js debugger:///VM[XXX] sourcemap-script.js
debugger:///VM[XXX] _test_create-iframe1.js debugger:///VM[XXX] _test_create-iframe1.js
debugger:///VM[XXX] _test_create-iframe2.js debugger:///VM[XXX] _test_create-iframe2.js
debugger:///VM[XXX] _test_detachFrame1.js [+] debugger:///VM[XXX] _test_detachFrame1.js
http://127.0.0.1:8000/inspector/bindings/bindings-test.js http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-frame.html http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-frame.html
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss
...@@ -58,9 +64,13 @@ Workspace: 21 uiSourceCodes. ...@@ -58,9 +64,13 @@ Workspace: 21 uiSourceCodes.
http://127.0.0.1:8000/inspector/inspector-test.js http://127.0.0.1:8000/inspector/inspector-test.js
_test_create-iframe1.js _test_create-iframe1.js
_test_create-iframe2.js _test_create-iframe2.js
_test_detachFrame1.js [+] _test_detachFrame1.js
Running: detachFrame2 Running: detachFrame2
Removed: 3 uiSourceCodes
[-] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-frame.html
[-] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-script.js
[-] http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-style.css
Workspace: 20 uiSourceCodes. Workspace: 20 uiSourceCodes.
debugger:///VM[XXX] bindings-test.js debugger:///VM[XXX] bindings-test.js
debugger:///VM[XXX] inspector-test.js debugger:///VM[XXX] inspector-test.js
...@@ -71,7 +81,7 @@ Workspace: 20 uiSourceCodes. ...@@ -71,7 +81,7 @@ Workspace: 20 uiSourceCodes.
debugger:///VM[XXX] _test_create-iframe1.js debugger:///VM[XXX] _test_create-iframe1.js
debugger:///VM[XXX] _test_create-iframe2.js debugger:///VM[XXX] _test_create-iframe2.js
debugger:///VM[XXX] _test_detachFrame1.js debugger:///VM[XXX] _test_detachFrame1.js
debugger:///VM[XXX] _test_detachFrame2.js [+] debugger:///VM[XXX] _test_detachFrame2.js
http://127.0.0.1:8000/inspector/bindings/bindings-test.js http://127.0.0.1:8000/inspector/bindings/bindings-test.js
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss
http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss http://127.0.0.1:8000/inspector/bindings/resources/sourcemap-sass.scss
...@@ -81,5 +91,5 @@ Workspace: 20 uiSourceCodes. ...@@ -81,5 +91,5 @@ Workspace: 20 uiSourceCodes.
_test_create-iframe1.js _test_create-iframe1.js
_test_create-iframe2.js _test_create-iframe2.js
_test_detachFrame1.js _test_detachFrame1.js
_test_detachFrame2.js [+] _test_detachFrame2.js
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
async function test() async function test()
{ {
InspectorTest.markStep('initialWorkspace'); InspectorTest.markStep('initialWorkspace');
InspectorTest.dumpWorkspace(); var snapshot = InspectorTest.dumpWorkspace();
InspectorTest.markStep('createIframesAndWaitForSourceMaps'); InspectorTest.markStep('createIframesAndWaitForSourceMaps');
await Promise.all([ await Promise.all([
...@@ -16,15 +16,15 @@ async function test() ...@@ -16,15 +16,15 @@ async function test()
InspectorTest.waitForSourceMap('sourcemap-script.js.map'), InspectorTest.waitForSourceMap('sourcemap-script.js.map'),
InspectorTest.waitForSourceMap('sourcemap-style.css.map') InspectorTest.waitForSourceMap('sourcemap-style.css.map')
]); ]);
InspectorTest.dumpWorkspace(); snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.markStep('detachFrame1'); InspectorTest.markStep('detachFrame1');
await InspectorTest.detachFrame('frame1', '_test_detachFrame1.js'); await InspectorTest.detachFrame('frame1', '_test_detachFrame1.js');
InspectorTest.dumpWorkspace(); snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.markStep('detachFrame2'); InspectorTest.markStep('detachFrame2');
await InspectorTest.detachFrame('frame2', '_test_detachFrame2.js'); await InspectorTest.detachFrame('frame2', '_test_detachFrame2.js');
InspectorTest.dumpWorkspace(); snapshot = InspectorTest.dumpWorkspace(snapshot);
InspectorTest.completeTest(); InspectorTest.completeTest();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment