Index: test/inspector/runtime/coverage.js |
diff --git a/test/inspector/runtime/coverage.js b/test/inspector/runtime/coverage.js |
index dff7eca3893aba64916735700fa68dbb4e96efda..0aa5da7318fa8168e72fd5dd4ca65ab3e1f73b35 100644 |
--- a/test/inspector/runtime/coverage.js |
+++ b/test/inspector/runtime/coverage.js |
@@ -23,6 +23,11 @@ function ClearAndGC() { |
.then(() => Protocol.HeapProfiler.disable()); |
} |
+function LogSorted(message) { |
+ message.result.result.sort((a, b) => parseInt(a.scriptId) - parseInt(b.scriptId)); |
+ return InspectorTest.logMessage(message); |
+} |
+ |
InspectorTest.runTestSuite([ |
function testPreciseCoverage(next) |
{ |
@@ -33,9 +38,9 @@ InspectorTest.runTestSuite([ |
.then(ClearAndGC) |
.then(InspectorTest.logMessage) |
.then(Protocol.Runtime.takePreciseCoverage) |
- .then(InspectorTest.logMessage) |
+ .then(LogSorted) |
.then(Protocol.Runtime.takePreciseCoverage) |
- .then(InspectorTest.logMessage) |
+ .then(LogSorted) |
.then(ClearAndGC) |
.then(Protocol.Runtime.stopPreciseCoverage) |
.then(Protocol.Runtime.disable) |
@@ -62,9 +67,9 @@ InspectorTest.runTestSuite([ |
.then(InspectorTest.logMessage) |
.then(ClearAndGC) |
.then(Protocol.Runtime.getBestEffortCoverage) |
- .then(InspectorTest.logMessage) |
+ .then(LogSorted) |
.then(Protocol.Runtime.getBestEffortCoverage) |
- .then(InspectorTest.logMessage) |
+ .then(LogSorted) |
.then(ClearAndGC) |
.then(Protocol.Runtime.disable) |
.then(next); |
@@ -78,9 +83,9 @@ InspectorTest.runTestSuite([ |
.then(InspectorTest.logMessage) |
.then(ClearAndGC) |
.then(Protocol.Runtime.getBestEffortCoverage) |
- .then(InspectorTest.logMessage) |
+ .then(LogSorted) |
.then(Protocol.Runtime.getBestEffortCoverage) |
- .then(InspectorTest.logMessage) |
+ .then(LogSorted) |
.then(ClearAndGC) |
.then(Protocol.Runtime.stopPreciseCoverage) |
.then(Protocol.Runtime.disable) |