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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/stub-3.1.2-service-worker-url.html

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase 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/imported/wpt/service-workers/stub-3.1.2-service-worker-url.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/service-workers/stub-3.1.2-service-worker-url.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/stub-3.1.2-service-worker-url.html
new file mode 100644
index 0000000000000000000000000000000000000000..5674df7fc8d9ac493251a6c51a3d7ca34674a71d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/stub-3.1.2-service-worker-url.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html>
+<title>Service Workers: url</title>
+ <head>
+ <link rel="help" href="https://w3c.github.io/ServiceWorker/#service-worker-url">
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+
+ </head>
+ <body>
+
+<!--
+
+The `url` attribute must return the [serialization][1] of the URL of the script
+of the Service Worker, identified by its [URL scope][2], that is associated
+with the [ServiceWorkerGlobalScope][3] object. The `url` attribute is always an
+[absolute URL][4] corresponding to the script file which the Service Worker
+evaluates.
+
+In the example in section 3.1.1, the value of
+`navigator.serviceWorker.controller.url` will be
+`"https://example.com/service_worker.js"`.
+
+
+
+[1]: http://url.spec.whatwg.org/#concept-url-serializer
+[2]: #url-scope
+[3]: #service-worker-global-scope-interface
+[4]: http://url.spec.whatwg.org/#concept-absolute-url
+
+-->
+
+
+
+ <script>
+ test(function() {
+ // not_implemented();
+ }, "There are no tests for section url so far.");
+ </script>
+
+ </body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698