Web Inspector: debugger-activation-crash2.html are flaky.
[WebKit-https.git] / LayoutTests / http / tests / inspector / debugger-test.js
index b382f2eb086a4e124f84fd1ada05843132ae56f3..fc247bfd13dd5742d8659193cffd56a90a502462 100644 (file)
@@ -102,7 +102,7 @@ InspectorTest.resumeExecution = function(callback)
     InspectorTest.waitUntilResumed(callback);
 };
 
-InspectorTest.captureStackTrace = function(callFrames)
+InspectorTest.captureStackTrace = function(callFrames, dropLineNumbers)
 {
     InspectorTest.addResult("Call stack:");
     for (var i = 0; i < callFrames.length; i++) {
@@ -117,7 +117,7 @@ InspectorTest.captureStackTrace = function(callFrames)
             url = "(internal script)";
             lineNumber = "(line number)";
         }
-        var s = "    " + i + ") " + frame.functionName + " (" + url + ":" + lineNumber + ")";
+        var s = "    " + i + ") " + frame.functionName + " (" + url + (dropLineNumbers ? "" : ":" + lineNumber) + ")";
         InspectorTest.addResult(s);
     }
 };