Commit 2d88cb7a authored by shimazu@chromium.org's avatar shimazu@chromium.org

ServiceWorkerRegistration::unregister returns false when the registration is...

ServiceWorkerRegistration::unregister returns false when the registration is already unregistered. (1/3)

1. [Blink] this patch
2. [Chromium] https://codereview.chromium.org/554573002/
3. [Blink] https://codereview.chromium.org/550093002/

BUG=390894
TEST=run_webkit_tests.py http/tests/serviceworker/unregister.html

Review URL: https://codereview.chromium.org/549093002

git-svn-id: svn://svn.chromium.org/blink/trunk@181692 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 151c6c47
...@@ -28,11 +28,11 @@ async_test(function(t) { ...@@ -28,11 +28,11 @@ async_test(function(t) {
return registration.unregister(); return registration.unregister();
}) })
.then(function(value) { .then(function(value) {
// FIXME: This value must be false in spec, // FIXME: Uncomment after applied the first patch.
// but this is not supported now. // https://codereview.chromium.org/554573002
// See: https://crbug.com/390894#c16 // See: https://crbug.com/390894#c16
assert_equals(value, true, // assert_equals(value, false,
'unregistering twice should resolve with true'); // 'unregistering twice should resolve with false');
t.done(); t.done();
}) })
.catch(unreached_rejection(t)); .catch(unreached_rejection(t));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment