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

Unified Diff: test/test_support.ts

Issue 2394683003: JS Interop Facade generation polish.
Patch Set: more cleanup Created 4 years, 2 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/module_test.ts ('k') | test/type_test.ts » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test_support.ts
diff --git a/test/test_support.ts b/test/test_support.ts
index 83a70fb8c43920464879a8e4efa86d474cdc3a1a..9993e98cdeb2e81a0b7da689ea9b50e8f13d6dfa 100644
--- a/test/test_support.ts
+++ b/test/test_support.ts
@@ -83,13 +83,11 @@ export function translateSources(contents: Input, options: main.TranspilerOption
}
export function translateSource(contents: Input, options: main.TranspilerOptions = {}): string {
- options.useHtml = true;
-
let results = translateSources(contents, options);
// Return the main outcome, from 'main.ts'.
let result = results[FAKE_MAIN];
// strip out the package:js import as it clutters the output.
result = result.replace(/import "package:js\/js.dart";\s+/g, '');
- result = result.replace(/^@JS\(\)\s+library [^;]+;\s+/g, '');
+ result = result.replace(/^@JS\("?[^)]*"?\)\s+library [^;]+;\s+/g, '');
return result.trim();
}
« no previous file with comments | « test/module_test.ts ('k') | test/type_test.ts » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698