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

Unified Diff: tests/compiler/dart2js/cps_ir/expected/argument_refinement_27.js

Issue 1576093003: cpsir unittests: move all unittests into individual files and test runners. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
Index: tests/compiler/dart2js/cps_ir/expected/argument_refinement_27.js
diff --git a/tests/compiler/dart2js/cps_ir/expected/argument_refinement_27.js b/tests/compiler/dart2js/cps_ir/expected/argument_refinement_27.js
new file mode 100644
index 0000000000000000000000000000000000000000..484f6a1b15a7f09b3b288483d7fcd0fb1ebb9800
--- /dev/null
+++ b/tests/compiler/dart2js/cps_ir/expected/argument_refinement_27.js
@@ -0,0 +1,19 @@
+// Expectation for test:
+// main() {
+// var x = int.parse('3');
+// var y = int.parse('a', onError: (e) => 'abcde');
+// print(x is int);
+// print(y is String);
+// print(y.codeUnitAt(x));
+// print(x is int);
+// print(y is String);
+// }
+
+function() {
+ var x = P.int_parse("3", null, null), y = P.int_parse("a", new V.main_closure(), null);
+ P.print(typeof x === "number" && Math.floor(x) === x);
+ P.print(typeof y === "string");
+ P.print(J.codeUnitAt$1$s(y, x));
+ P.print(true);
+ P.print(true);
+}

Powered by Google App Engine
This is Rietveld 408576698