| Index: third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html b/third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html
|
| index e424e064ed4756c0d3ab01a16f24bd358ddace42..1aed4e40a225f8ca606b113ecdee046e00c452a9 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html
|
| @@ -29,18 +29,29 @@ function test()
|
|
|
| function step3()
|
| {
|
| - InspectorTest.evaluateInPage("obj.foo", step4);
|
| + InspectorTest.expandConsoleMessages(step4, expandFirstArrayIndexFilter);
|
| }
|
|
|
| - function step4(result)
|
| + function step4()
|
| + {
|
| + InspectorTest.evaluateInPage("obj.foo", step5);
|
| + }
|
| +
|
| + function step5(result)
|
| {
|
| var text = result.description;
|
| InspectorTest.assertEquals(15, text.length, "text length");
|
| - InspectorTest.assertEquals(7, countTextNodes(text), "nodes count");
|
| + InspectorTest.assertEquals(6, countTextNodes(text), "nodes count");
|
| InspectorTest.addResult("PASS: Found all nodes with the broken text");
|
| InspectorTest.completeTest();
|
| }
|
|
|
| + function expandFirstArrayIndexFilter(treeElement)
|
| + {
|
| + var propertyName = treeElement.nameElement && treeElement.nameElement.textContent;
|
| + return propertyName === "0";
|
| + }
|
| +
|
| function countTextNodes(textContent)
|
| {
|
| InspectorTest.disableConsoleViewport();
|
|
|