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

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

Issue 2735933002: DevTools: add tests to fixate bindings behavior (Closed)
Patch Set: DevTools: add tests to fixate bindings behavior 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
(Empty)
1 <html>
2 <head>
3 <script src="../inspector-test.js"></script>
4 <script src="./bindings-test.js"></script>
5
6 <script>
7
8 async function test()
9 {
10 var sourcesNavigator = new Sources.SourcesNavigatorView();
11 sourcesNavigator.show(UI.inspectorView.element);
12
13 InspectorTest.markStep('dumpInitialNavigator');
14 InspectorTest.dumpNavigatorView(sourcesNavigator, false);
15
16 InspectorTest.markStep('attachFrame');
17 await InspectorTest.attachFrame('frame', './resources/magic-frame.html');
18 InspectorTest.dumpNavigatorView(sourcesNavigator, false);
19
20 InspectorTest.markStep('navigateMainFrame');
21 var url = "http://localhost:8000/inspector/bindings/resources/empty-page.htm l";
22 await InspectorTest.navigatePromise(url);
23 InspectorTest.dumpNavigatorView(sourcesNavigator, false);
24
25 InspectorTest.markStep('navigateBack');
26 var originalUrl = "http://localhost:8000/inspector/bindings/navigator-main-f rame-navigated.html";
27 await InspectorTest.navigatePromise(originalUrl);
28 InspectorTest.completeTest();
29 }
30
31 </script>
32
33 </head>
34 <body onload="runTest()">
35 <p>
36 Verify that navigator properly handles main frame navigated event.
37 </p>
38 </body>
39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698