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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin.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-cross-origin.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin.html b/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin.html
deleted file mode 100644
index 4f959a4f82d85968e317245d93427a1614b47c9c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<script src="/js-test-resources/js-test.js"></script>
-<script>
-description("Testing navigator.sendBeacon() cross-origin.");
-
-window.jsTestIsAsync = true;
-
-function test() {
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- testRunner.dumpPingLoaderCallbacks();
- }
-
- shouldBeTrue('navigator.sendBeacon("http://localhost:8000/navigation/resources/save-beacon.php?name=cross-origin", "CrossOrigin");');
- var xhr = new XMLHttpRequest();
- xhr.open("GET", "resources/check-beacon.php?name=cross-origin");
- xhr.onload = function () {
- var lines = xhr.responseText.split("\n");
- for (var i in lines)
- testPassed(lines[i]);
- finishJSTest();
- };
- xhr.onerror = function () {
- testFailed("Unable to fetch beacon status");
- finishJSTest();
- };
- xhr.send();
-}
-</script>
-</head>
-<body onload="test();">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698