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

Unified Diff: LayoutTests/accessibility/removed-anonymous-block-child-causes-crash.html

Issue 217003006: Remove carriage returns from LayoutTests (01) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix caret-and-focus-ring Created 6 years, 9 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/accessibility/removed-anonymous-block-child-causes-crash.html
diff --git a/LayoutTests/accessibility/removed-anonymous-block-child-causes-crash.html b/LayoutTests/accessibility/removed-anonymous-block-child-causes-crash.html
index f74845d4ebe61750a97d1635bef412a829cb8207..02cc13998480f049b6ca724da27fe14f2c0149c8 100644
--- a/LayoutTests/accessibility/removed-anonymous-block-child-causes-crash.html
+++ b/LayoutTests/accessibility/removed-anonymous-block-child-causes-crash.html
@@ -1,51 +1,51 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script>
-
- function removeElement() {
- document.getElementById('div').removeChild(document.getElementById('div').children[2]);
- }
-
- function queryIsEnabledOnDecendants(accessibilityObject) {
- accessibilityObject.isEnabled
-
- var count = accessibilityObject.childrenCount;
- for (var i = 0; i < count; ++i)
- queryIsEnabledOnDecendants(accessibilityObject.childAtIndex(i));
- }
-</script>
-<script src="../resources/js-test.js"></script>
-</head>
-<body>
-
-<div id="div">
- <span>
- <div>a</div>
- </span>
- <div style="float:left">a</div>
- <span title="title">b</span>
-</div>
-
-<p id="description"></p>
-<div id="console"></div>
-
-<script>
- description("In certain cases removing a decendent from an anonymous block element does not update the parent chain correctly. This can cause a crash.");
-
- if (window.accessibilityController) {
- // First build up full accessibility tree.
- document.body.focus();
- queryIsEnabledOnDecendants(accessibilityController.focusedElement);
-
- removeElement()
-
- // Now call isEnabled on each accessibility object.
- document.body.focus();
- queryIsEnabledOnDecendants(accessibilityController.focusedElement);
- }
-
-</script>
-
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script>
+
+ function removeElement() {
+ document.getElementById('div').removeChild(document.getElementById('div').children[2]);
+ }
+
+ function queryIsEnabledOnDecendants(accessibilityObject) {
+ accessibilityObject.isEnabled
+
+ var count = accessibilityObject.childrenCount;
+ for (var i = 0; i < count; ++i)
+ queryIsEnabledOnDecendants(accessibilityObject.childAtIndex(i));
+ }
+</script>
+<script src="../resources/js-test.js"></script>
+</head>
+<body>
+
+<div id="div">
+ <span>
+ <div>a</div>
+ </span>
+ <div style="float:left">a</div>
+ <span title="title">b</span>
+</div>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+ description("In certain cases removing a decendent from an anonymous block element does not update the parent chain correctly. This can cause a crash.");
+
+ if (window.accessibilityController) {
+ // First build up full accessibility tree.
+ document.body.focus();
+ queryIsEnabledOnDecendants(accessibilityController.focusedElement);
+
+ removeElement()
+
+ // Now call isEnabled on each accessibility object.
+ document.body.focus();
+ queryIsEnabledOnDecendants(accessibilityController.focusedElement);
+ }
+
+</script>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698