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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/appcache-ordering.is-appcached.html

Issue 671583002: Test: Pages controlled by ServiceWorkers should not participate in AppCaching (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: LayoutTests/http/tests/serviceworker/resources/appcache-ordering.is-appcached.html
diff --git a/LayoutTests/http/tests/serviceworker/resources/appcache-ordering.is-appcached.html b/LayoutTests/http/tests/serviceworker/resources/appcache-ordering.is-appcached.html
new file mode 100644
index 0000000000000000000000000000000000000000..485ab1771973bbea532851150096e156bf2bf7f2
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/appcache-ordering.is-appcached.html
@@ -0,0 +1,13 @@
+<html> <!-- Intentionally does NOT include a manifest attribute -->
+<body>
+<!-- This should FALLBACK to ordering.is_appcached.js as specified in manifest
+ when the appcache is present -->
+<script src="appcache-ordering.is-appcached404.js"></script>
+<script>
+
+// If the script of the fallback resource loaded, is_appcached will be defined.
+window.parent.notify_is_appcached(typeof is_appcached != 'undefined');
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698