summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/self-painting-layers2.html
blob: 8b10b94a3754bbdd08f0bc0325625cc803d21df3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html>
  <head>
    <title>Self painting layers</title>

    <style type="text/css" media="screen">

    .container {
      overflow: hidden;
      width: 300px;
      border: 1px solid black;
    }
    
    </style>
    <script type="text/javascript" charset="utf-8">
      if (window.testRunner) {
          testRunner.dumpAsText();
          testRunner.waitUntilDone();
      }

      function testOnLoad()
      {
        window.setTimeout(function() {
          if (window.testRunner)
            testRunner.notifyDone();
        }, 0);
      }
      
      window.addEventListener('load', function() {
        var video = document.getElementById('video');
        video.addEventListener('loadeddata', testOnLoad, false);
        video.src = 'resources/video.' + (video.canPlayType('video/ogg') ? 'ogv' : 'mp4');
      }, false);
    </script>
  </head>
  <body>

      <p>This test should not assert in debug builds.</p>
      <div class="container">
          <video id="video" width="300" height="200"></video>
      </div>

  </body>
</html>