Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: LayoutTests/fast/dom/Range/range-comparePoint.html

Issue 252783002: Make Range.detach() a no-op (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/Range/range-comparePoint.html
diff --git a/LayoutTests/fast/dom/Range/range-comparePoint.html b/LayoutTests/fast/dom/Range/range-comparePoint.html
index a961155a7422b7d22c46243212e08042727fb358..6dec4ac74210c9d42f65f59da5d4af6a284ffec7 100644
--- a/LayoutTests/fast/dom/Range/range-comparePoint.html
+++ b/LayoutTests/fast/dom/Range/range-comparePoint.html
@@ -61,14 +61,12 @@ function test()
document.getElementById("test8").innerHTML = "test 8 passed";
// test 9 - detached range, attached node
- // firefox throws an exception and does not return a value
+ expectedResult = 1;
var detachedRange = document.createRange();
- detachedRange.detach();
- try {
- result = detachedRange.comparePoint(document.getElementById("a1"), 0);
- } catch (e) {
- document.getElementById("test9").innerHTML = "test 9 passed";
- }
+ detachedRange.detach(); // no-op.
+ result = detachedRange.comparePoint(document.getElementById("a1"), 0);
+ if (result == expectedResult)
+ document.getElementById("test9").innerHTML = "test 9 passed";
// test 10 - attached range, detached node
// firefox throws an exception
« no previous file with comments | « LayoutTests/fast/dom/Range/range-compareNode-expected.txt ('k') | LayoutTests/fast/dom/Range/range-comparePoint-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698