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

Unified Diff: test/inspector/runtime/protocol-works-with-different-locale.js

Issue 2713023004: [inspector] added reconnect method for tests (Closed)
Patch Set: rebased Created 3 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
« no previous file with comments | « test/inspector/runtime/property-on-console-proto.js ('k') | test/inspector/runtime/run-script-async.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/runtime/protocol-works-with-different-locale.js
diff --git a/test/inspector/runtime/protocol-works-with-different-locale.js b/test/inspector/runtime/protocol-works-with-different-locale.js
index 27be5ed9053fb23f4025db9c681a6e9720f3037d..950bfdbf6b0965e51f50ed2a4b99443548900d6c 100644
--- a/test/inspector/runtime/protocol-works-with-different-locale.js
+++ b/test/inspector/runtime/protocol-works-with-different-locale.js
@@ -13,27 +13,27 @@ InspectorTest.runTestSuite([
function consoleTimeWithCommaAsSeparator(next) {
InspectorTest.log("set locale to fr_CA.UTF-8 (has comma as separator)");
- setlocale("fr_CA.UTF-8");
- setCurrentTimeMSForTest(0.0);
+ utils.setlocale("fr_CA.UTF-8");
+ utils.setCurrentTimeMSForTest(0.0);
Protocol.Runtime.evaluate({ expression: "console.time(\"a\");"})
- .then(() => setCurrentTimeMSForTest(0.001))
+ .then(() => utils.setCurrentTimeMSForTest(0.001))
.then(() => Protocol.Runtime.evaluate({ expression: "console.timeEnd(\"a\");"}))
.then(next);
},
function consoleLogWithCommaAsSeparator(next) {
InspectorTest.log("set locale to fr_CA.UTF-8 (has comma as separator)");
- setlocale("fr_CA.UTF-8");
+ utils.setlocale("fr_CA.UTF-8");
Protocol.Runtime.evaluate({ expression: "console.log(239) "}).then(next);
},
function consoleTimeWithCommaAfterConsoleLog(next) {
InspectorTest.log("set locale to fr_CA.UTF-8 (has comma as separator)");
- setlocale("fr_CA.UTF-8");
+ utils.setlocale("fr_CA.UTF-8");
Protocol.Runtime.evaluate({ expression: "console.log(239) "})
- .then(() => setCurrentTimeMSForTest(0.0))
+ .then(() => utils.setCurrentTimeMSForTest(0.0))
.then(() => Protocol.Runtime.evaluate({ expression: "console.time(\"a\");"}))
- .then(() => setCurrentTimeMSForTest(0.001))
+ .then(() => utils.setCurrentTimeMSForTest(0.001))
.then(() => Protocol.Runtime.evaluate({ expression: "console.timeEnd(\"a\");"}))
.then(next);
}
« no previous file with comments | « test/inspector/runtime/property-on-console-proto.js ('k') | test/inspector/runtime/run-script-async.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698