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

Unified Diff: LayoutTests/inspector/elements/elements-panel-search.html

Issue 719053003: DevTools: [Elements] Do not miss DOM matches on documentElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test Created 6 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/elements-panel-search-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/elements/elements-panel-search.html
diff --git a/LayoutTests/inspector/elements/elements-panel-search.html b/LayoutTests/inspector/elements/elements-panel-search.html
index 58f8e5622fe292341f596d2e07a6265d2ca121b0..1f4175a0be347e7b01c28b4b31d128cb1a13d705 100644
--- a/LayoutTests/inspector/elements/elements-panel-search.html
+++ b/LayoutTests/inspector/elements/elements-panel-search.html
@@ -1,5 +1,5 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
+<html id="documentElement">
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script>
@@ -14,6 +14,7 @@ function initializeShadowDOM()
function test()
{
+ var omitInnerHTML;
function searchCallback(next, resultCount)
{
@@ -33,6 +34,8 @@ function test()
function addSearchResult(isLastItem, error, markupVa_lue)
{
+ if (omitInnerHTML)
+ markupVa_lue = markupVa_lue.substr(0, markupVa_lue.indexOf(">") + 1);
InspectorTest.addResult(markupVa_lue.split("").join(" "));
if (isLastItem) {
WebInspector.domModel.cancelSearch();
@@ -107,8 +110,15 @@ function test()
WebInspector.domModel.performSearch("In" + "putVa" + "l", false, searchCallback.bind(this, next));
},
+ function testExactAttributeVal_ueOnRoot(next)
+ {
+ omitInnerHTML = true;
+ WebInspector.domModel.performSearch("documen" + "tElement", false, searchCallback.bind(this, next));
+ },
+
function testExactAttributeVal_ueWithQuotes(next)
{
+ omitInnerHTML = false;
WebInspector.domModel.performSearch("\"fo" + "o\"", false, searchCallback.bind(this, next));
},
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/elements-panel-search-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698