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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/bindings/bindings-main-frame-navigated.html

Issue 2738033002: DevTools: add more tests to fixate bindings behavior (Closed)
Patch Set: rebaseline Created 3 years, 9 months 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="./bindings-test.js"></script> 4 <script src="./bindings-test.js"></script>
5 5
6 <script> 6 <script>
7 7
8 async function test() 8 async function test()
9 { 9 {
10 InspectorTest.markStep('dumpInitialWorkspace'); 10 InspectorTest.markStep('dumpInitialWorkspace');
11 InspectorTest.dumpWorkspace(); 11 var snapshot = InspectorTest.dumpWorkspace();
12 12
13 InspectorTest.markStep('attachFrame'); 13 InspectorTest.markStep('attachFrame');
14 await Promise.all([ 14 await Promise.all([
15 InspectorTest.attachFrame('frame', './resources/sourcemap-frame.html', ' _test_attachFrame.js'), 15 InspectorTest.attachFrame('frame', './resources/sourcemap-frame.html', ' _test_attachFrame.js'),
16 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), 16 InspectorTest.waitForSourceMap('sourcemap-script.js.map'),
17 InspectorTest.waitForSourceMap('sourcemap-style.css.map'), 17 InspectorTest.waitForSourceMap('sourcemap-style.css.map'),
18 ]); 18 ]);
19 InspectorTest.dumpWorkspace(); 19 snapshot = InspectorTest.dumpWorkspace(snapshot);
20 20
21 InspectorTest.markStep('navigateMainFrame'); 21 InspectorTest.markStep('navigateMainFrame');
22 var url = "http://127.0.0.1:8000/inspector/bindings/resources/empty-page.htm l"; 22 var url = "http://127.0.0.1:8000/inspector/bindings/resources/empty-page.htm l";
23 await InspectorTest.navigatePromise(url); 23 await InspectorTest.navigatePromise(url);
24 InspectorTest.dumpWorkspace(); 24 snapshot = InspectorTest.dumpWorkspace(snapshot);
25 25
26 InspectorTest.markStep('navigateBack'); 26 InspectorTest.markStep('navigateBack');
27 var originalUrl = "http://127.0.0.1:8000/inspector/bindings/bindings-main-fr ame-navigated.html"; 27 var originalUrl = "http://127.0.0.1:8000/inspector/bindings/bindings-main-fr ame-navigated.html";
28 await InspectorTest.navigatePromise(originalUrl); 28 await InspectorTest.navigatePromise(originalUrl);
29 29
30 InspectorTest.completeTest(); 30 InspectorTest.completeTest();
31 } 31 }
32 32
33 </script> 33 </script>
34 34
35 </head> 35 </head>
36 <body onload="runTest()"> 36 <body onload="runTest()">
37 <p> 37 <p>
38 Verify that UISourceCodes are removed as main frame gets navigated. 38 Verify that UISourceCodes are removed as main frame gets navigated.
39 </p> 39 </p>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698