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: LayoutTests/http/tests/serviceworker/fetch-event-client-attribute.html

Issue 1138223002: Layout Tests for client attribute of Fetchvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/fetch-event-client-attribute-test-worker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/fetch-event-client-attribute.html
diff --git a/LayoutTests/http/tests/serviceworker/fetch-event-client-attribute.html b/LayoutTests/http/tests/serviceworker/fetch-event-client-attribute.html
new file mode 100644
index 0000000000000000000000000000000000000000..942c72245beb3e89f86173601a635d156e46d478
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/fetch-event-client-attribute.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="resources/test-helpers.js"></script>
+<body>
+<script>
+var worker = 'resources/fetch-event-client-attribute-test-worker.js';
+var scope = 'resources/simple.html';
+
+promise_test(function(test) {
+ return service_worker_unregister_and_register(test, worker, scope)
+ .then(function(registration) {
+ return wait_for_state(test, registration.installing, 'activated');
+ })
+ .then(function() { return with_iframe(scope); })
+ .then(function(frame) {
+ assert_equals(frame.contentDocument.body.textContent,
+ 'nested', 'frameType for frame should be nested');
Paritosh Kumar 2015/05/12 12:20:43 Yes, this will be nested for frame.
falken 2015/05/15 04:41:25 nit: this line should be indented so the arguments
Paritosh Kumar 2015/05/15 05:46:31 Done. Thanks.
+ frame.remove();
+ return service_worker_unregister_and_done(test, scope);
+ });
+ }, 'Service Worker responds to fetch event with client frameType');
+
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/fetch-event-client-attribute-test-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698