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

Side by Side Diff: LayoutTests/svg/custom/stale-resource-data-crash.svg

Issue 183703003: Remove more testRunner.display() calls from LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <svg id="svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.or g/2000/svg"> 2 <svg id="svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.or g/2000/svg">
3 <defs id="defs"> 3 <defs id="defs">
4 <filter id="f1"> 4 <filter id="f1">
5 <feDiffuseLighting> 5 <feDiffuseLighting>
6 <feDistantLight azimuth="45" id="light"/> 6 <feDistantLight azimuth="45" id="light"/>
7 </feDiffuseLighting> 7 </feDiffuseLighting>
8 </filter> 8 </filter>
9 <filter id="f2"/> 9 <filter id="f2"/>
10 </defs> 10 </defs>
11 <image id="img" filter="url(#f1)" xlink:href="data:image/png;base64,iVBORw0KGg oAAAANSUhEUgAAAAoAAAAKCAIAAAACUFjqAAAADUlEQVQY02NgGAWkAwABNgABGtWNFwAAAABJRU5Erk Jggg=="/> 11 <image id="img" filter="url(#f1)" xlink:href="data:image/png;base64,iVBORw0KGg oAAAANSUhEUgAAAAoAAAAKCAIAAAACUFjqAAAADUlEQVQY02NgGAWkAwABNgABGtWNFwAAAABJRU5Erk Jggg=="/>
12 12
13 <text>PASS: did not crash.</text> 13 <text>PASS: did not crash.</text>
14 14
15 <script> 15 <script>
16 f2 = document.getElementById('f2'); 16 f2 = document.getElementById('f2');
17 docElement = document.getElementById('svg'); 17 docElement = document.getElementById('svg');
18 light = document.getElementById('light'); 18 light = document.getElementById('light');
19 newDefs = document.getElementById('defs').cloneNode(true); 19 newDefs = document.getElementById('defs').cloneNode(true);
20 20
21 if (window.testRunner) { 21 if (window.testRunner) {
22 testRunner.dumpAsText(); 22 testRunner.dumpAsText();
23 // Force a paint at this point to generate cached filter results. 23 testRunner.waitUntilDone();
24 testRunner.display();
25 } 24 }
26 25 // Force a paint at this point to generate cached filter results.
27 docElement.appendChild(newDefs); 26 window.requestAnimationFrame(function() {
28 docElement.appendChild(f2); 27 setTimeout(function() {
29 docElement.offsetTop; 28 docElement.appendChild(newDefs);
30 light.removeAttribute('azimuth'); 29 docElement.appendChild(f2);
30 docElement.offsetTop;
31 light.removeAttribute('azimuth');
32 if (window.testRunner)
33 testRunner.notifyDone();
34 }, 0);
35 });
31 </script> 36 </script>
32 </svg> 37 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698