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. |