layout/reftests/selection/splitText-normalize-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/selection/splitText-normalize-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html class="reftest-wait">
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=191864
     1.8 +-->
     1.9 +<head>
    1.10 +  <title>Test for Bug 191864</title>
    1.11 +  <script type="application/javascript;version=1.7" src="splitText-normalize.js"></script>
    1.12 +<script type="application/javascript;version=1.7">
    1.13 +var id;
    1.14 +function checkFinished() {
    1.15 +  if (window.frames.length == tests_done) {
    1.16 +    clearInterval(id);
    1.17 +    document.documentElement.className = "";
    1.18 +  }
    1.19 +}
    1.20 +
    1.21 +function runTest() {
    1.22 +  let col1 = document.getElementById('col1');
    1.23 +  let col2 = document.getElementById('col2');
    1.24 +  let col3 = document.getElementById('col3');
    1.25 +  let col4 = document.getElementById('col4');
    1.26 +  for (let i=0; i < tests.length; ++i) {
    1.27 +    let t = tests[i];
    1.28 +    col1.appendChild(createFrame(test_ref,t));
    1.29 +    col2.appendChild(createFrame(test_ref,t));
    1.30 +    col3.appendChild(createFrame(test_ref,t));
    1.31 +    col4.appendChild(createFrame(test_ref,t));
    1.32 +  }
    1.33 +  id = setInterval(checkFinished,500);
    1.34 +}
    1.35 +</script>
    1.36 +</head>
    1.37 +<body onload="runTest()">
    1.38 +<span id="col1" style="float:left; height:800px; width:180px;"></span>
    1.39 +<span id="col2" style="float:left; height:800px; width:180px;"></span>
    1.40 +<span id="col3" style="float:left; height:800px; width:180px;"></span>
    1.41 +<span id="col4" style="float:left; height:800px; width:180px;"></span>
    1.42 +</body>
    1.43 +</html>

mercurial