Move a printing test out of WPT
This is because there is no spec text corresponding to this behavior,
and the test is failing on other browsers.
See also: https://github.com/web-platform-tests/wpt/pull/23453/
Change-Id: Ia2d4f0c75c3b295e19f1ffec3e2e0d0fb1882c00
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2187174
Reviewed-by: vmpstr <vmpstr@chromium.org>
Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#766471}
diff --git a/printing/print-microtask-after-navigate.html b/printing/print-microtask-after-navigate.html
deleted file mode 100644
index b3f7f76..0000000
--- a/printing/print-microtask-after-navigate.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!doctype HTML>
-<meta charset=utf-8>
-<title>Printing in microtask after navigation</title>
-<link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org">
-<link rel="help" href="https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#printing">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-Passes if it does not crash.
-<script>
- let print_promise = new Promise(function(resolve, reject) {
- resolve();
- });
-
- // Call print in a microtask. This will execute after the navigation click
- // has happened, which will cause the document to become neutered and
- // ineligible for the print command.
- print_promise.then(() => print());
-</script>
- <a href="resources/destination.html">
-<script>
- document.getElementsByTagName("a")[0].click();
-</script>
diff --git a/printing/resources/destination.html b/printing/resources/destination.html
deleted file mode 100644
index 00e8959..0000000
--- a/printing/resources/destination.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<!doctype HTML>
-<link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org">
-Passes if it does not crash.
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script>
- test(()=> {}, "Did not crash");
-</script>