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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/navigation/beacon-detached-no-crash.html

Issue 2702113003: Move tests for sendBeacon to a separate dedicated directory for clearer ownership (Closed)
Patch Set: a Created 3 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/navigation/beacon-detached-no-crash.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-detached-no-crash.html b/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-detached-no-crash.html
deleted file mode 100644
index b68c35b4d1952233553662e4647a7e000535cd08..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-detached-no-crash.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<script src="/js-test-resources/js-test.js"></script>
-<script>
-description("Accessing Navigator sendBeacon methods on a closed window.");
-
-window.jsTestIsAsync = true;
-
-var w;
-function processMessage(event) {
- if (event.data == "opened") {
- w.close();
- } else if (event.data == "closed") {
- shouldThrow("w.navigator.sendBeacon()");
- shouldBeFalse("w.navigator.sendBeacon('resources/blank.txt', 'detached-should-return false')");
- finishJSTest();
- }
-}
-
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.setCanOpenWindows();
- testRunner.waitUntilDone();
-}
-w = window.open('/js-test-resources/window-postmessage-open-close.html');
-window.addEventListener("message", processMessage, false);
-</script>

Powered by Google App Engine
This is Rietveld 408576698