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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/resources/redirect.js

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/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', '');

Powered by Google App Engine
This is Rietveld 408576698