splitText-normalize-ref.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE HTML>
  2. <html class="reftest-wait">
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=191864
  5. -->
  6. <head>
  7. <title>Test for Bug 191864</title>
  8. <script type="application/javascript;version=1.7" src="splitText-normalize.js"></script>
  9. <script type="application/javascript;version=1.7">
  10. var id;
  11. function checkFinished() {
  12. if (window.frames.length == tests_done) {
  13. clearInterval(id);
  14. document.documentElement.className = "";
  15. }
  16. }
  17. function runTest() {
  18. let col1 = document.getElementById('col1');
  19. let col2 = document.getElementById('col2');
  20. let col3 = document.getElementById('col3');
  21. let col4 = document.getElementById('col4');
  22. for (let i=0; i < tests.length; ++i) {
  23. let t = tests[i];
  24. col1.appendChild(createFrame(test_ref,t));
  25. col2.appendChild(createFrame(test_ref,t));
  26. col3.appendChild(createFrame(test_ref,t));
  27. col4.appendChild(createFrame(test_ref,t));
  28. }
  29. id = setInterval(checkFinished,500);
  30. }
  31. </script>
  32. </head>
  33. <body onload="runTest()">
  34. <span id="col1" style="float:left; height:800px; width:180px;"></span>
  35. <span id="col2" style="float:left; height:800px; width:180px;"></span>
  36. <span id="col3" style="float:left; height:800px; width:180px;"></span>
  37. <span id="col4" style="float:left; height:800px; width:180px;"></span>
  38. </body>
  39. </html>