Index: third_party/WebKit/Source/devtools/front_end/Tests.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/Tests.js b/third_party/WebKit/Source/devtools/front_end/Tests.js |
index 8db56af455b800bd30241f993efdcc4937f643dc..dc4a843378bd225f396f630d85ff710d3664d915 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/Tests.js |
+++ b/third_party/WebKit/Source/devtools/front_end/Tests.js |
@@ -478,7 +478,7 @@ TestSuite.prototype.testNetworkRawHeadersText = function() |
{ |
if (!resource.responseHeadersText) |
test.fail("Failure: resource does not have response headers text"); |
- var index = resource.responseHeadersText.indexOf("Date:") |
+ var index = resource.responseHeadersText.indexOf("Date:"); |
test.assertEquals(112, resource.responseHeadersText.substring(index).length, "Incorrect response headers text length"); |
test.releaseControl(); |
} |
@@ -639,7 +639,7 @@ TestSuite.prototype.enableTouchEmulation = function() |
TestSuite.prototype.enableAutoAttachToCreatedPages = function() |
{ |
WebInspector.settingForTest("autoAttachToCreatedPages").set(true); |
-} |
+}; |
TestSuite.prototype.waitForDebuggerPaused = function() |
{ |
@@ -649,13 +649,13 @@ TestSuite.prototype.waitForDebuggerPaused = function() |
this.takeControl(); |
this._waitForScriptPause(this.releaseControl.bind(this)); |
-} |
+}; |
TestSuite.prototype.switchToPanel = function(panelName) |
{ |
this.showPanel(panelName).then(this.releaseControl.bind(this)); |
this.takeControl(); |
-} |
+}; |
// Regression test for crbug.com/370035. |
TestSuite.prototype.testDeviceMetricsOverrides = function() |
@@ -824,7 +824,7 @@ TestSuite.prototype.testScreenshotRecording = function() |
{ |
var readyImages = []; |
for (var frame of frames) |
- frame.imageDataPromise().then(onGotImageData) |
+ frame.imageDataPromise().then(onGotImageData); |
function onGotImageData(data) |
{ |
@@ -872,7 +872,7 @@ TestSuite.prototype.testScreenshotRecording = function() |
} |
test.takeControl(); |
-} |
+}; |
TestSuite.prototype.testSettings = function() |
{ |
@@ -910,7 +910,7 @@ TestSuite.prototype.testSettings = function() |
test.assertEquals(2, globalSetting.get().n); |
test.releaseControl(); |
} |
-} |
+}; |
TestSuite.prototype.testWindowInitializedOnNavigateBack = function() |
{ |
@@ -938,13 +938,13 @@ TestSuite.prototype.testConsoleContextNames = function() |
test.assertEquals("Simple content script", values[1]); |
test.releaseControl(); |
} |
-} |
+}; |
TestSuite.prototype.testDevToolsSharedWorker = function() |
{ |
this.takeControl(); |
WebInspector.TempFile.ensureTempStorageCleared().then(() => this.releaseControl()); |
-} |
+}; |
TestSuite.prototype.waitForTestResultsInConsole = function() |
{ |
@@ -986,8 +986,8 @@ TestSuite.prototype._overrideMethod = function(receiver, methodName, override) |
} |
override.apply(original, arguments); |
return value; |
- } |
-} |
+ }; |
+}; |
TestSuite.prototype.startTimeline = function(callback) |
{ |
@@ -997,14 +997,14 @@ TestSuite.prototype.startTimeline = function(callback) |
test._overrideMethod(timeline, "recordingStarted", callback); |
timeline._toggleRecording(); |
}); |
-} |
+}; |
TestSuite.prototype.stopTimeline = function(callback) |
{ |
var timeline = WebInspector.panels.timeline; |
this._overrideMethod(timeline, "loadingComplete", callback); |
timeline._toggleRecording(); |
-} |
+}; |
TestSuite.prototype.invokePageFunctionAsync = function(functionName, opt_args, callback_is_always_last) |
{ |
@@ -1022,7 +1022,7 @@ TestSuite.prototype.invokePageFunctionAsync = function(functionName, opt_args, c |
callback(); |
} |
} |
-} |
+}; |
TestSuite.prototype.invokeAsyncWithTimeline_ = function(functionName, callback) |
{ |
@@ -1044,7 +1044,7 @@ TestSuite.prototype.invokeAsyncWithTimeline_ = function(functionName, callback) |
TestSuite.prototype.enableExperiment = function(name) |
{ |
Runtime.experiments.enableForTest(name); |
-} |
+}; |
TestSuite.prototype.checkInputEventsPresent = function() |
{ |
@@ -1064,7 +1064,7 @@ TestSuite.prototype.checkInputEventsPresent = function() |
} |
if (expectedEvents.size) |
throw "Some expected events are not found: " + Array.from(expectedEvents.keys()).join(","); |
-} |
+}; |
/** |
* Serializes array of uiSourceCodes to string. |
@@ -1194,7 +1194,7 @@ TestSuite.prototype._waitForTargets = function(n, callback) |
else |
this.addSniffer(WebInspector.TargetManager.prototype, "addTarget", checkTargets.bind(this)); |
} |
-} |
+}; |
TestSuite.prototype._waitForExecutionContexts = function(n, callback) |
{ |
@@ -1208,7 +1208,7 @@ TestSuite.prototype._waitForExecutionContexts = function(n, callback) |
else |
this.addSniffer(WebInspector.RuntimeModel.prototype, "_executionContextCreated", checkForExecutionContexts.bind(this)); |
} |
-} |
+}; |
/** |
* Key event with given key identifier. |