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

Unified Diff: LayoutTests/http/tests/geofencing/service-worker.html

Issue 401713005: Move all geofencing code into its own module separate from geolocation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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/geofencing/service-worker.html
diff --git a/LayoutTests/http/tests/serviceworker/fetch.html b/LayoutTests/http/tests/geofencing/service-worker.html
similarity index 63%
copy from LayoutTests/http/tests/serviceworker/fetch.html
copy to LayoutTests/http/tests/geofencing/service-worker.html
index 95f43bf97948e9d9e09962f7d51cd814a6c3b7b9..578028e5c00df793d3eb805f6b0577667244ba58 100644
--- a/LayoutTests/http/tests/serviceworker/fetch.html
+++ b/LayoutTests/http/tests/geofencing/service-worker.html
@@ -1,14 +1,13 @@
<!DOCTYPE html>
Peter Beverloo 2014/07/25 09:22:19 This is a new test, please do this in a separate p
Marijn Kruisselbrink 2014/07/30 23:40:54 Done.
-<title>Service Worker: fetch()</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
-<script src="resources/test-helpers.js"></script>
+<script src="../serviceworker/resources/test-helpers.js"></script>
<script>
-var test = async_test('Verify fetch() in a Service Worker');
+var test = async_test('Verify geofencing in a Service Worker');
test.step(function() {
var scope = 'resources/blank.html';
service_worker_unregister_and_register(
- test, 'resources/fetch-worker.js', scope).then(test.step_func(onRegister));
+ test, 'resources/worker.js', scope).then(test.step_func(onRegister));
function onRegister(worker) {
var messageChannel = new MessageChannel();
@@ -18,11 +17,9 @@ test.step(function() {
var result = [];
var expected = [
- 'Resolved: other.html [200]OK',
- 'Rejected: http:// : Invalid URL',
- 'Rejected: http://www.example.com/foo : Failed to fetch',
- 'Resolved: fetch-status.php?status=200 [200]OK',
- 'Resolved: fetch-status.php?status=404 [404]Not Found',
+ 'Rejected: The implementation did not support the requested type of object or operation.',
+ 'Rejected: The implementation did not support the requested type of object or operation.',
+ 'Rejected: The implementation did not support the requested type of object or operation.'
];
function onMessage(e) {

Powered by Google App Engine
This is Rietveld 408576698