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

Unified Diff: LayoutTests/inspector/filtered-item-selection-dialog-rendering.html

Issue 1095153002: DevTools: fix inspector/filter-item-selection-dialog-rendering.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | LayoutTests/inspector/filtered-item-selection-dialog-rendering-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/filtered-item-selection-dialog-rendering.html
diff --git a/LayoutTests/inspector/filtered-item-selection-dialog-rendering.html b/LayoutTests/inspector/filtered-item-selection-dialog-rendering.html
index 5284d59fa5596d0f3d846ff56ff05c5d492005de..47d362fd5db23400485c3fb11faf714975b73613 100644
--- a/LayoutTests/inspector/filtered-item-selection-dialog-rendering.html
+++ b/LayoutTests/inspector/filtered-item-selection-dialog-rendering.html
@@ -11,8 +11,6 @@
<script>
function test()
{
- setTimeout(InspectorTest.completeTest.bind(InspectorTest), 2000);
-
var delegate = new WebInspector.SelectUISourceCodeDialog();
InspectorTest.runTestSuite([
@@ -46,17 +44,20 @@ function test()
InspectorTest.addResult("filter query: " + query);
var titleElement = document.createElement("div");
var subtitleElement = document.createElement("div");
+ var outputs = [];
for (var i = 0; i < delegate.itemCount(); ++i) {
delegate.renderItem(i, query, titleElement, subtitleElement);
if (!subtitleElement.textContent.startsWith("test/"))
continue;
- dumpRenderedElement(titleElement);
- dumpRenderedElement(subtitleElement);
- InspectorTest.addResult("--------------------");
+ var text = elementHighlightedText(titleElement);
+ text += "\n" + elementHighlightedText(subtitleElement);
+ outputs.push(text);
}
+ outputs.sort();
+ InspectorTest.addResult(outputs.join("\n--------------------\n"));
}
- function dumpRenderedElement(element)
+ function elementHighlightedText(element)
{
var text = "";
for (var i = 0; i < element.childNodes.length; ++i) {
@@ -66,7 +67,7 @@ function test()
else
text += String.sprintf("[%s]", node.textContent);
}
- InspectorTest.addResult(text);
+ return text;
}
}
</script>
« no previous file with comments | « no previous file | LayoutTests/inspector/filtered-item-selection-dialog-rendering-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698