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

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

Issue 2931143003: DevTools: make debugger's rawLocationToUILocation return nullable type (Closed)
Patch Set: add test Created 3 years, 6 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 InspectorTest.markStep('attachFrame');
11 await Promise.all([
12 InspectorTest.attachFrame('frame', './resources/sourcemap-frame.html'),
13 InspectorTest.waitForSourceMap('sourcemap-script.js.map'),
14 InspectorTest.waitForSourceMap('sourcemap-style.css.map'),
15 ]);
16
17 var jsLiveLocation = InspectorTest.createDebuggerLiveLocation('js', 'sourcem ap-script.js');
18 var cssLiveLocation = InspectorTest.createCSSLiveLocation('css', 'sourcemap- style.css');
19
20 InspectorTest.markStep('navigateMainFrame');
21 var url = "http://127.0.0.1:8000/inspector/bindings/resources/empty-page.htm l";
22 await InspectorTest.navigatePromise(url);
23 InspectorTest.dumpLocation(jsLiveLocation);
24 InspectorTest.dumpLocation(cssLiveLocation);
25
26 InspectorTest.markStep('navigateBack');
27 var originalUrl = "http://127.0.0.1:8000/inspector/bindings/bindings-main-fr ame-navigated.html";
28 await InspectorTest.navigatePromise(originalUrl);
29
30 InspectorTest.completeTest();
31 }
32
33 </script>
34
35 </head>
36 <body onload="runTest()">
37 <p>
38 Verify that debugger live location gets updated.
39 </p>
40 </body>
41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698