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

Side by Side Diff: LayoutTests/compositing/visibility/visibility-simple-video-layer.html

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 years, 2 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 .box { 5 .box {
6 height: 150px; 6 height: 150px;
7 width: 150px; 7 width: 150px;
8 } 8 }
9 9
10 div { 10 div {
(...skipping 14 matching lines...) Expand all
25 25
26 .composited { 26 .composited {
27 -webkit-transform: translateZ(1px); 27 -webkit-transform: translateZ(1px);
28 } 28 }
29 </style> 29 </style>
30 30
31 <script src="../resources/media-testing.js"></script> 31 <script src="../resources/media-testing.js"></script>
32 <script src="../../media/media-file.js"></script> 32 <script src="../../media/media-file.js"></script>
33 <script type="text/javascript" charset="utf-8"> 33 <script type="text/javascript" charset="utf-8">
34 if (window.testRunner) 34 if (window.testRunner)
35 testRunner.dumpAsText(true); 35 testRunner.dumpAsTextWithPixelResults();
36 36
37 var counter = 0; 37 var counter = 0;
38 function notifyVideoDone() { 38 function notifyVideoDone() {
39 counter = counter + 1; 39 counter = counter + 1;
40 if ((counter === 3) && (window.testRunner)) 40 if ((counter === 3) && (window.testRunner))
41 testRunner.notifyDone(); 41 testRunner.notifyDone();
42 } 42 }
43 43
44 function doTest() 44 function doTest()
45 { 45 {
46 setupVideo(document.getElementsByTagName('video')[0], '../resources/vi deo', null, notifyVideoDone); 46 setupVideo(document.getElementsByTagName('video')[0], '../resources/vi deo', null, notifyVideoDone);
47 setupVideo(document.getElementsByTagName('video')[1], '../resources/vi deo', null, notifyVideoDone); 47 setupVideo(document.getElementsByTagName('video')[1], '../resources/vi deo', null, notifyVideoDone);
48 setupVideo(document.getElementsByTagName('video')[2], '../resources/vi deo', null, notifyVideoDone); 48 setupVideo(document.getElementsByTagName('video')[2], '../resources/vi deo', null, notifyVideoDone);
49 } 49 }
50 </script> 50 </script>
51 </head> 51 </head>
52 52
53 <body onload="doTest()"> 53 <body onload="doTest()">
54 <!-- Tests CSS visibility flag for composited video layers. --> 54 <!-- Tests CSS visibility flag for composited video layers. -->
55 <!-- Pixel test only. Only the top video should be visible, the other two sh ould be hidden (borders should remain visible) --> 55 <!-- Pixel test only. Only the top video should be visible, the other two sh ould be hidden (borders should remain visible) -->
56 <div><video class="visible composited box"></video></div> 56 <div><video class="visible composited box"></video></div>
57 <div><video class="hidden box"></video></div> 57 <div><video class="hidden box"></video></div>
58 <div><video class="hidden composited box"></video></div> 58 <div><video class="hidden composited box"></video></div>
59 </body> 59 </body>
60 </html> 60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698