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

Side by Side Diff: pkg/dev_compiler/tool/run.js

Issue 3004073002: Remove corelib/corelib_strong and migrate last two remaining tests. (Closed)
Patch Set: Created 3 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// This is a utility to run and debug an individual DDC compiled test. 5 /// This is a utility to run and debug an individual DDC compiled test.
6 /// Tests can be run with either node or devtool (a Chrome-based utility with 6 /// Tests can be run with either node or devtool (a Chrome-based utility with
7 /// DOM APIs and developer tools support). 7 /// DOM APIs and developer tools support).
8 /// 8 ///
9 /// Install devtool via: 9 /// Install devtool via:
10 /// > npm install -g devtool 10 /// > npm install -g devtool
11 /// 11 ///
12 /// Run via: 12 /// Run via:
13 /// > devtool tool/run.js -- corelib/apply2_test 13 /// > devtool tool/run.js -- corelib_2/apply2_test
14 /// or 14 /// or
15 /// > node tool/run.js corelib/apply2_test 15 /// > node tool/run.js corelib_2/apply2_test
16 /// 16 ///
17 /// See TODO below on async / unittest support. 17 /// See TODO below on async / unittest support.
18 18
19 var args = process.argv.slice(2); 19 var args = process.argv.slice(2);
20 if (args.length != 1) { 20 if (args.length != 1) {
21 throw new Error("Usage: devtool tool/run.js <test-module-name>"); 21 throw new Error("Usage: devtool tool/run.js <test-module-name>");
22 } 22 }
23 var test = args[0]; 23 var test = args[0];
24 24
25 var requirejs = require('requirejs'); 25 var requirejs = require('requirejs');
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 if (!result || !(sdk.async.Future.is(result))) { 81 if (!result || !(sdk.async.Future.is(result))) {
82 finish(); 82 finish();
83 } else { 83 } else {
84 // Wait iff result is a future 84 // Wait iff result is a future
85 result.then(sdk.dart.dynamic)(() => finish(), { onError: (e) => finish(e) }); 85 result.then(sdk.dart.dynamic)(() => finish(), { onError: (e) => finish(e) });
86 } 86 }
87 } 87 }
88 } catch (e) { 88 } catch (e) {
89 finish(e); 89 finish(e);
90 } 90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698