Bug 1366623 - Reftest for reflow of a frame that formerly required bidi resolution (and so got a BidiDataProperty attached) but no longer has any bidi content, so the previously-attached property sticks has become obsolete. r=dholbert
authorJonathan Kew <jkew@mozilla.com>
Tue, 23 May 2017 15:21:54 +0100
changeset 360094 5f76c5baf28aba6205273330b1f10321aae29cec
parent 360093 7af9cc734f9e9079afb56900944b5e7eb3cda964
child 360095 d90c91b76b8ebc76805599e39bc6cec681260add
push id90583
push userjkew@mozilla.com
push dateTue, 23 May 2017 14:22:48 +0000
treeherdermozilla-inbound@d90c91b76b8e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1366623
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1366623 - Reftest for reflow of a frame that formerly required bidi resolution (and so got a BidiDataProperty attached) but no longer has any bidi content, so the previously-attached property sticks has become obsolete. r=dholbert
layout/reftests/bidi/1366623-1-ref.html
layout/reftests/bidi/1366623-1.html
layout/reftests/bidi/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/1366623-1-ref.html
@@ -0,0 +1,16 @@
+<html class="reftest-wait">
+<meta charset=utf-8>
+<body>
+<div id="test" contenteditable>Example</div>
+<script>
+var elem = document.getElementById("test");
+var sel = window.getSelection();
+sel.removeAllRanges();
+var range = document.createRange();
+range.setStart(elem.firstChild, 1);
+range.setEnd(elem.firstChild, 1);
+sel.addRange(range);
+sel.removeAllRanges();
+elem.offsetHeight;
+document.documentElement.removeAttribute("class");
+</script>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/1366623-1.html
@@ -0,0 +1,17 @@
+<html class="reftest-wait">
+<meta charset=utf-8>
+<body>
+<div id="test" contenteditable>E&#x202e;xample</div>
+<script>
+var elem = document.getElementById("test");
+var sel = window.getSelection();
+sel.removeAllRanges();
+var range = document.createRange();
+range.setStart(elem.firstChild, 1);
+range.setEnd(elem.firstChild, 2);
+sel.addRange(range);
+sel.deleteFromDocument();
+sel.removeAllRanges();
+elem.offsetHeight;
+document.documentElement.removeAttribute("class");
+</script>
--- a/layout/reftests/bidi/reftest.list
+++ b/layout/reftests/bidi/reftest.list
@@ -167,8 +167,9 @@ fuzzy-if(Android,254,557) == brackets-2a
 fuzzy-if(Android,254,231) == brackets-2c-rtl.html brackets-2c-rtl-ref.html
 == brackets-3a-ltr.html brackets-3a-ltr-ref.html
 == brackets-3a-rtl.html brackets-3a-rtl-ref.html
 == brackets-3b-ltr.html brackets-3b-ltr-ref.html
 == brackets-3b-rtl.html brackets-3b-rtl-ref.html
 fails-if(stylo) == 1217833-1.html 1217833-1-ref.html
 fails-if(stylo) == 1217833-2.html 1217833-2-ref.html
 == 1231175-1.html 1231175-1-ref.html
+fails == 1366623-1.html 1366623-1-ref.html