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

Unified Diff: third_party/WebKit/Source/devtools/front_end/unit_test_runner.js

Issue 2513423003: DevTools: Convert inspector-unit tests to use reusable test harness (Closed)
Patch Set: refactor into test app Created 4 years, 1 month 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
Index: third_party/WebKit/Source/devtools/front_end/unit_test_runner.js
diff --git a/third_party/WebKit/Source/devtools/front_end/unit_test_runner.js b/third_party/WebKit/Source/devtools/front_end/unit_test_runner.js
new file mode 100644
index 0000000000000000000000000000000000000000..ff9b4e4eb5fb4267736c70c4bda38eb76db2785e
--- /dev/null
+++ b/third_party/WebKit/Source/devtools/front_end/unit_test_runner.js
@@ -0,0 +1,18 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+if (self.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+(function() {
+ Runtime.startApplication('unit_test_runner').then(() => initializeTest());
+ function initializeTest() {
pfeldman 2016/11/29 23:06:17 test runner module should do this on its own.
chenwilliam 2016/11/30 02:21:02 Done - moved logic to new shell module now.
+ if (self.document.readyState === 'complete' || self.document.readyState === 'interactive')
+ TestRunner.initializeUnitTest();
+ else
+ document.addEventListener('DOMContentLoaded', () => TestRunner.initializeUnitTest());
+ }
+})();

Powered by Google App Engine
This is Rietveld 408576698