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

Unified Diff: LayoutTests/http/tests/serviceworker/fetch-event.html

Issue 352423005: Add ServiceWorker InstallPhaseEvent.waitUntil() layout test. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add FIXME Created 6 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: LayoutTests/http/tests/serviceworker/fetch-event.html
diff --git a/LayoutTests/http/tests/serviceworker/fetch-event.html b/LayoutTests/http/tests/serviceworker/fetch-event.html
index 779a29d797dce31db6321af1ea98999045393fe7..27a51615f21657be1bbc5ddf7f71809b4da4b4fe 100644
--- a/LayoutTests/http/tests/serviceworker/fetch-event.html
+++ b/LayoutTests/http/tests/serviceworker/fetch-event.html
@@ -16,7 +16,7 @@ var worker = 'resources/fetch-event-test-worker.js';
}
function onStateChange(event) {
- if (event.target.state != 'active')
+ if (event.target.state != 'activated')
return;
with_iframe(scope, t.step_func(function(frame) {
assert_equals(frame.contentDocument.body.textContent, 'hello, world',
@@ -36,7 +36,7 @@ var worker = 'resources/fetch-event-test-worker.js';
}
function onStateChange(event) {
- if (event.target.state != 'active')
+ if (event.target.state != 'activated')
return;
with_iframe(scope, t.step_func(function(frame) {
assert_equals(frame.contentDocument.body.textContent, 'Here\'s a simple html file.\n',
@@ -56,7 +56,7 @@ var worker = 'resources/fetch-event-test-worker.js';
}
function onStateChange(event) {
- if (event.target.state != 'active')
+ if (event.target.state != 'activated')
return;
with_iframe(scope, t.step_func(function(frame) {
assert_equals(frame.contentDocument.body.textContent, '',
@@ -76,7 +76,7 @@ var worker = 'resources/fetch-event-test-worker.js';
}
function onStateChange(event) {
- if (event.target.state != 'active')
+ if (event.target.state != 'activated')
return;
with_iframe(scope, t.step_func(function(frame) {
assert_equals(frame.contentDocument.body.textContent, 'Here\'s a simple html file.\n',
@@ -96,7 +96,7 @@ var worker = 'resources/fetch-event-test-worker.js';
}
function onStateChange(event) {
- if (event.target.state != 'active')
+ if (event.target.state != 'activated')
return;
with_iframe(scope, t.step_func(function(frame) {
assert_equals(frame.contentDocument.body.textContent, 'Here\'s an other html file.\n',

Powered by Google App Engine
This is Rietveld 408576698