Index: third_party/WebKit/LayoutTests/paint/invalidation/spv2/resources/redirect.js |
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/spv2/resources/redirect.js b/third_party/WebKit/LayoutTests/paint/invalidation/spv2/resources/redirect.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a254d425f71cd42ba98960413bec3118696f5303 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/spv2/resources/redirect.js |
@@ -0,0 +1,12 @@ |
+// Forces dumpAsText and redirects xxx-redir.html to xxx.html. |
+// xxx.html must call testRunner.notifyDone() to finish the test. |
+ |
+// TODO(wangxianzhu): Create unit tests for these tests to check |
+// for paint invalidations. |
+ |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.waitUntilDone(); |
+} |
+ |
+document.location.href = document.location.href.replace('-redir', ''); |