| Index: third_party/WebKit/LayoutTests/accessibility/press-works-on-control-types.html
|
| diff --git a/third_party/WebKit/LayoutTests/accessibility/press-works-on-control-types.html b/third_party/WebKit/LayoutTests/accessibility/press-works-on-control-types.html
|
| index fa8e8ec6bb964d4cb45f1250cb846333ee2201e1..0db05b73ef968be29b9ea6aebe5d7d7275c20cae 100644
|
| --- a/third_party/WebKit/LayoutTests/accessibility/press-works-on-control-types.html
|
| +++ b/third_party/WebKit/LayoutTests/accessibility/press-works-on-control-types.html
|
| @@ -3,24 +3,26 @@
|
| <head>
|
| <script src="../resources/js-test.js"></script>
|
| </head>
|
| -<body id="body">
|
| +<body>
|
|
|
| -<div role="group" id="group" tabindex="0">group</div>
|
| -<div role="button" id="button" tabindex="0">button</div>
|
| -<div role="tab" id="tab" tabindex="0">tab button</div>
|
| -<div role="radio" id="radio" tabindex="0">radio</div>
|
| -<div role="checkbox" id="checkbox" tabindex="0">checkbox</div>
|
| -<div role="menuitem" id="menuitem" tabindex="0">menu item</div>
|
| -<div role="menuitemcheckbox" id="menuitemcheckbox" tabindex="0">menu item checkbox</div>
|
| -<div role="menuitemradio" id="menuitemradio" tabindex="0">menu item radio</div>
|
| -<div role="listitem" id="listitem" tabindex="0">list item</div>
|
| +<div id="container">
|
| + <div role="group" id="group" tabindex="0">group</div>
|
| + <div role="button" id="button" tabindex="0">button</div>
|
| + <div role="tab" id="tab" tabindex="0">tab button</div>
|
| + <div role="radio" id="radio" tabindex="0">radio</div>
|
| + <div role="checkbox" id="checkbox" tabindex="0">checkbox</div>
|
| + <div role="menuitem" id="menuitem" tabindex="0">menu item</div>
|
| + <div role="menuitemcheckbox" id="menuitemcheckbox" tabindex="0">menu item checkbox</div>
|
| + <div role="menuitemradio" id="menuitemradio" tabindex="0">menu item radio</div>
|
| + <div role="listitem" id="listitem" tabindex="0">list item</div>
|
| +</div>
|
|
|
| <p id="description"></p>
|
| <div id="console"></div>
|
|
|
| <script>
|
|
|
| - document.getElementById("body").onmousedown = handlePress;
|
| + document.getElementById("container").onmousedown = handlePress;
|
|
|
| var pressCount = 0;
|
| var eventSrcElement;
|
| @@ -28,9 +30,9 @@
|
| eventSrcElement = e.srcElement;
|
|
|
| // First press was on the group element. That is not a control type and it should
|
| - // have caused the body to be the target element instead of the group element.
|
| + // have caused the container to be the target element instead of the group element.
|
| if (pressCount == 0)
|
| - shouldBeTrue("eventSrcElement == document.getElementById('body')");
|
| + shouldBeTrue("eventSrcElement == document.getElementById('container')");
|
| else if (pressCount == 1)
|
| shouldBeTrue("eventSrcElement == document.getElementById('button')");
|
| else if (pressCount == 2)
|
|
|