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

Unified Diff: LayoutTests/http/tests/serviceworker/getregistrations.html

Issue 1216203003: Replace all sequential_promise_tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@update-testharnessjs
Patch Set: Created 5 years, 5 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: LayoutTests/http/tests/serviceworker/getregistrations.html
diff --git a/LayoutTests/http/tests/serviceworker/getregistrations.html b/LayoutTests/http/tests/serviceworker/getregistrations.html
index 3f6fbaba10767f668317472669ec9226e369e8f4..2f514751500df4e1d671e45ad85fae459c3f87d3 100644
--- a/LayoutTests/http/tests/serviceworker/getregistrations.html
+++ b/LayoutTests/http/tests/serviceworker/getregistrations.html
@@ -2,14 +2,13 @@
<title>Service Worker: getRegistrations()</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
-<script src="../resources/testharness-helpers.js"></script>
<script src="resources/test-helpers.js"></script>
<script src="../resources/get-host-info.js"></script>
<script>
// Purge the existing registrations for the origin.
// getRegistrations() is used in order to avoid adding additional complexity
// e.g. adding an internal function.
-sequential_promise_test(function(t) {
+promise_test(function(t) {
var resolve;
var timer;
var p = new Promise(function(r) { resolve = r; });
@@ -35,7 +34,7 @@ sequential_promise_test(function(t) {
return p;
}, 'Purge the existing registrations.');
-sequential_promise_test(function(t) {
+promise_test(function(t) {
var scope = 'resources/scope/getregistrations/normal';
var script = 'resources/empty-worker.js';
var registrations = [];
@@ -53,7 +52,7 @@ sequential_promise_test(function(t) {
});
}, 'Register then getRegistrations');
-sequential_promise_test(function(t) {
+promise_test(function(t) {
var scope1 = 'resources/scope/getregistrations/scope1';
var scope2 = 'resources/scope/getregistrations/scope2';
var script = 'resources/empty-worker.js';
@@ -79,7 +78,7 @@ sequential_promise_test(function(t) {
});
}, 'Register multiple times then getRegistrations');
-sequential_promise_test(function(t) {
+promise_test(function(t) {
var scope = 'resources/scope/getregistrations/register-unregister';
var script = 'resources/empty-worker.js';
return service_worker_unregister_and_register(t, script, scope)
@@ -97,7 +96,7 @@ sequential_promise_test(function(t) {
});
}, 'Register then Unregister then getRegistrations');
-sequential_promise_test(function(t) {
+promise_test(function(t) {
// Top-level window's origin: http://127.0.0.1:8000.
// Frame's origin: http://localhost:8000.
var host_info = get_host_info();
« no previous file with comments | « LayoutTests/http/tests/resources/testharness-helpers.js ('k') | LayoutTests/resources/testharness-helpers.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698