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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-pause.html

Issue 2388933002: [DevTools] Update inspector/service-workers tests. (Closed)
Patch Set: no crash Created 4 years, 2 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/service-workers/service-worker-pause.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-pause.html b/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-pause.html
new file mode 100644
index 0000000000000000000000000000000000000000..de7b85cc8015c3047ee046e2d7b678b6d2e966a0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-pause.html
@@ -0,0 +1,33 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../debugger-test.js"></script>
+<script src="service-workers-test.js"></script>
+<script>
+
+function test()
+{
+ var scriptURL = "http://127.0.0.1:8000/inspector/service-workers/resources/service-worker-debugger.js";
+ var scope = "http://127.0.0.1:8000/inspector/service-workers/resources/scope-debugger/";
+
+ InspectorTest.startDebuggerTest(start);
+
+ function start()
+ {
+ InspectorTest.waitUntilPaused(onPaused);
+ InspectorTest.registerServiceWorker(scriptURL, scope);
+ }
+
+ function onPaused(frames, reason, breakpointIds, async)
+ {
+ InspectorTest.captureStackTrace(frames, async);
+ InspectorTest.completeDebuggerTest();
+ }
+}
+
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests that we can pause in service worker.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698