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

Unified Diff: LayoutTests/push_messaging/push-messaging-detached-no-crash.html

Issue 735293005: Push API: delete the old layout tests [switchover 1/6] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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/push_messaging/push-messaging-detached-no-crash.html
diff --git a/LayoutTests/push_messaging/push-messaging-detached-no-crash.html b/LayoutTests/push_messaging/push-messaging-detached-no-crash.html
deleted file mode 100644
index 7800ebf428b0fff73ddacc0db954b031b71c894e..0000000000000000000000000000000000000000
--- a/LayoutTests/push_messaging/push-messaging-detached-no-crash.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("Accessing navigator.push on a closed window.");
-
-var jsTestIsAsync = true;
-
-var win;
-var nav;
-
-function processMessage(event) {
- if (event.data == 'opened') {
- nav = win.navigator;
- win.close();
- win = null;
- } else if (event.data == 'closed') {
- nav.push.register().then(function successCallback() {
- testFailed('Success callback invoked unexpectedly.');
- finishJSTest();
- }, function(e) {
- error = e;
- shouldBeEqualToString('error.message', 'Document is detached from window.');
- finishJSTest();
- });
- }
-}
-
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.setCanOpenWindows();
-}
-win = window.open('resources/push-messaging-detached-no-crash-new-window.html');
-window.addEventListener("message", processMessage, false);
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698