summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/layers/layer-status-change-crash.html
blob: 92719f647de65b83169756b2846315c01a80fc5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE HTML>
<body>
<div id="div">This test passes if it does not crash.</div>
<script>
if (window.testRunner) {
  testRunner.waitUntilDone();
  testRunner.dumpAsText();

  var div = document.getElementById('div');
  testRunner.layoutAndPaintAsyncThen(function() {
    div.style.position = 'relative';
    div.style.backgroundColor = 'blue';
    testRunner.layoutAndPaintAsyncThen(function() {
      div.textContent += ' PASS';
      testRunner.notifyDone();
    });
  });
} else {
  document.body.textContent = 'This test needs DumpRenderTree.';
} 
</script>
</body>