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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/resources/paint-invalidation-test.js

Issue 2010243002: Remove paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Asynchronous tests should manually call finishPaintInvalidationTest at the ap propriate time.
2 window.testIsAsync = false;
3
4 // All paint invalidation tests are asynchronous from test-runner's point of vie w.
5 if (window.testRunner) {
6 testRunner.waitUntilDone();
7 if (document.location.hash == '#as-text')
8 testRunner.dumpAsText();
9 }
10
11 function runPaintInvalidationTest()
12 {
13 if (!window.testRunner || !window.internals) {
14 setTimeout(paintInvalidationTest, 500);
15 return;
16 }
17
18 testRunner.layoutAndPaintAsyncThen(function()
19 {
20 window.internals.startTrackingPaintInvalidationObjects();
21 paintInvalidationTest();
22 if (!window.testIsAsync)
23 finishPaintInvalidationTest();
24 });
25 }
26
27 function removeAllChildren(element)
28 {
29 while (element.firstChild)
30 element.removeChild(element.firstChild);
31 }
32
33 function finishPaintInvalidationTest()
34 {
35 if (!window.testRunner || !window.internals)
36 return;
37
38 testRunner.layoutAndPaintAsyncThen(function()
39 {
40 testRunner.setCustomTextOutput(JSON.stringify(internals.trackedPaintInva lidationObjects()).replace(/","/g, '",\n "'));
41 testRunner.notifyDone();
42 });
43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698