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

Unified Diff: LayoutTests/dart/inspector/evaluate-in-console.html

Issue 1689873002: Enable inspector tests disabled when dart:html was switched to JS interop. (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/2454_1
Patch Set: Created 4 years, 10 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
Index: LayoutTests/dart/inspector/evaluate-in-console.html
diff --git a/LayoutTests/dart/inspector/evaluate-in-console.html b/LayoutTests/dart/inspector/evaluate-in-console.html
index 62bf68d5cf694f3c452fcf7f2c01547ab56d8860..fa734c830546806774d148c35d236160e12ddd32 100644
--- a/LayoutTests/dart/inspector/evaluate-in-console.html
+++ b/LayoutTests/dart/inspector/evaluate-in-console.html
@@ -1,6 +1,7 @@
<html>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/debugger-test.js"></script>
+<script src="../../http/tests/inspector/console-test.js"></script>
<script type="application/dart" src="evaluate-in-console.dart"></script>
@@ -16,6 +17,17 @@ function testFunction() {
function test()
{
+ realAddResult = InspectorTest.addResult;
+ InspectorTest.addResult = function(text) {
+ text = text.replace(/(file:\/\/\/\w):/g, "$1");
+ text = text.replace(/file:\/\/\/?[^: )]*([.]dart|[$]script|[$]trampoline)/g, "(SOURCE_LOCATION)");
+ text = text.replace(/\(file:\/\/\/?[^)]*\)/g, "(SOURCE_LOCATION)");
+ text = text.replace(/@\d+/g, "(VM_PRIVATE_MANGLING)");
+ text = text.replace(/\$main\-[0-9]*/g, "(DEFAULT_ISOLATE_NAME_SUFFIX)");
+ text = text.replace(/:\d\d\d+/g, ":xxxx");
+ return realAddResult.call(this, text);
+ };
+
var panel = WebInspector.inspectorView.showPanel("sources");
InspectorTest.runDebuggerTestSuite([
function testScopeChain(next)
@@ -43,6 +55,9 @@ function test()
// external changes.
result = result.replace(/\(file:[^.)]*(\/[^\/]*[.]dart[0-9:]*)\)/g,
"(FILE_SOURCE_LOCATION$1)");
+ result = result.replace(/VM\d+:\d+/g,
+ "(VM:LOCATION)");
+
// For dart: urls we remove all file name and line #
// information as the tests shouldn't break when
// dart:core changes.
« no previous file with comments | « LayoutTests/dart/inspector/deferred-import.html ('k') | LayoutTests/dart/inspector/evaluate-in-console-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698