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

Unified Diff: LayoutTests/http/tests/inspector/console-test.js

Issue 596323002: DevTools: make ElementsTreeOutline shadow dom-based. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests fixed Created 6 years, 2 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/audits/audits-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/console-test.js
diff --git a/LayoutTests/http/tests/inspector/console-test.js b/LayoutTests/http/tests/inspector/console-test.js
index 5d27524d4e2d7ecc5b38f8071e3e14bd6da41735..3ed9e3ac9e59fb322da58bcf22267d4198b01ca4 100644
--- a/LayoutTests/http/tests/inspector/console-test.js
+++ b/LayoutTests/http/tests/inspector/console-test.js
@@ -13,7 +13,7 @@ InspectorTest.evaluateInConsole = function(code, callback)
event.initKeyboardEvent("keydown", true, true, null, "Enter", "");
consoleView._prompt.proxyElement.dispatchEvent(event);
InspectorTest.addConsoleViewSniffer(function(commandResult) {
- callback(commandResult.toMessageElement().textContent);
+ callback(commandResult.toMessageElement().deepTextContent());
});
}
@@ -40,7 +40,7 @@ InspectorTest.evaluateInConsoleAndDump = function(code, callback)
InspectorTest.prepareConsoleMessageText = function(messageElement, consoleMessage)
{
- var messageText = messageElement.textContent.replace(/\u200b/g, "");
+ var messageText = messageElement.deepTextContent().replace(/\u200b/g, "");
// Replace scriptIds with generic scriptId string to avoid flakiness.
messageText = messageText.replace(/VM\d+/g, "VM");
// Strip out InjectedScript line numbers from stack traces to avoid rebaselining each time InjectedScriptSource is edited.
« no previous file with comments | « no previous file | LayoutTests/inspector/audits/audits-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698