1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/text/line-editing-1e.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html class="reftest-wait"> 1.6 +<head> 1.7 +<script> 1.8 +function doTest() { 1.9 + var text = document.body.firstChild; 1.10 + // Replace two lines with three lines (but not at line boundaries) 1.11 + text.replaceData(34, 7, "5\nLine 6\nLine "); 1.12 + document.documentElement.removeAttribute('class'); 1.13 +} 1.14 +document.addEventListener("MozReftestInvalidate", doTest, false); 1.15 +</script> 1.16 +</head> 1.17 +<body style="white-space:pre; padding: 2px; font-family: sans-serif;"> 1.18 +Line 1 1.19 +Line 2 1.20 +Line 3 1.21 +Line 4 1.22 +Line X 1.23 +Line 7 1.24 +Line 8 1.25 +Line 9 1.26 +</body> 1.27 +</html>