layout/reftests/selection/splitText-normalize.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

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

mercurial