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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/bindings/livelocation-main-frame-navigated.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/livelocation-main-frame-navigated.html b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/livelocation-main-frame-navigated.html
new file mode 100644
index 0000000000000000000000000000000000000000..bd17d01ec3c5eb76581a72b0c1628b45c7f48ccd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/livelocation-main-frame-navigated.html
@@ -0,0 +1,41 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="./bindings-test.js"></script>
+
+<script>
+
+async function test()
+{
+ InspectorTest.markStep('attachFrame');
+ await Promise.all([
+ InspectorTest.attachFrame('frame', './resources/sourcemap-frame.html'),
+ InspectorTest.waitForSourceMap('sourcemap-script.js.map'),
+ InspectorTest.waitForSourceMap('sourcemap-style.css.map'),
+ ]);
+
+ var jsLiveLocation = InspectorTest.createDebuggerLiveLocation('js', 'sourcemap-script.js');
+ var cssLiveLocation = InspectorTest.createCSSLiveLocation('css', 'sourcemap-style.css');
+
+ InspectorTest.markStep('navigateMainFrame');
+ var url = "http://127.0.0.1:8000/inspector/bindings/resources/empty-page.html";
+ await InspectorTest.navigatePromise(url);
+ InspectorTest.dumpLocation(jsLiveLocation);
+ InspectorTest.dumpLocation(cssLiveLocation);
+
+ InspectorTest.markStep('navigateBack');
+ var originalUrl = "http://127.0.0.1:8000/inspector/bindings/bindings-main-frame-navigated.html";
+ await InspectorTest.navigatePromise(originalUrl);
+
+ InspectorTest.completeTest();
+}
+
+</script>
+
+</head>
+<body onload="runTest()">
+<p>
+Verify that debugger live location gets updated.
+</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698