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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/no-filesystem.html

Issue 1667213002: Don't expose nonstandard FileSystem API to Service Workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@work-bind
Patch Set: virtual/stable rebaselines Created 4 years, 10 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/http/tests/serviceworker/chromium/no-filesystem.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/no-filesystem.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/no-filesystem.html
new file mode 100644
index 0000000000000000000000000000000000000000..833a8cd7c264f77093080c1a2357bc494d8579bf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/no-filesystem.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<title>Service Worker: File System API is not exposed (and doesn't crash)</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../resources/test-helpers.js"></script>
+<script>
+promise_test(function(t) {
+ var scope = 'resources/blank.html'
+ return service_worker_unregister_and_register(
+ t, 'resources/no-filesystem.js', scope)
+ .then(function(registration) {
+ return wait_for_state(t, registration.installing, 'activated');
+ })
+ .then(function() {
+ return service_worker_unregister_and_done(t, scope);
+ });
+ });
+</script>

Powered by Google App Engine
This is Rietveld 408576698