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

Side by Side Diff: Source/modules/accessibility/AXObjectTest.cpp

Issue 978173002: Merge 190852 "[Contextual Search] Check for an ARIA widget." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2311/
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/accessibility/AXObject.cpp ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "modules/accessibility/AXObject.h" 6 #include "modules/accessibility/AXObject.h"
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/Element.h" 9 #include "core/dom/Element.h"
10 #include "core/testing/DummyPageHolder.h" 10 #include "core/testing/DummyPageHolder.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 EXPECT_TRUE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElement ById("button-caps"))); 51 EXPECT_TRUE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElement ById("button-caps")));
52 EXPECT_TRUE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElement ById("button-second"))); 52 EXPECT_TRUE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElement ById("button-second")));
53 EXPECT_FALSE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElemen tById("aria-bogus"))); 53 EXPECT_FALSE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElemen tById("aria-bogus")));
54 EXPECT_TRUE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElement ById("aria-selected"))); 54 EXPECT_TRUE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElement ById("aria-selected")));
55 EXPECT_TRUE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElement ById("haspopup"))); 55 EXPECT_TRUE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElement ById("haspopup")));
56 EXPECT_TRUE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElement ById("focusable"))); 56 EXPECT_TRUE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElement ById("focusable")));
57 EXPECT_TRUE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElement ById("focusable-parent"))); 57 EXPECT_TRUE(AXObject::isInsideFocusableElementOrARIAWidget(*root->getElement ById("focusable-parent")));
58 } 58 }
59 59
60 } 60 }
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXObject.cpp ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698