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

Unified Diff: test/codegen/expect/misc.js

Issue 1183453005: fixes #226 super == and fixes #227 escape \r \f (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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 | « lib/src/js/builder.dart ('k') | test/codegen/expect/misc.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/misc.js
diff --git a/test/codegen/expect/misc.js b/test/codegen/expect/misc.js
index fc14cb64d1b22bd3a59159a5301c897901b3d8ca..709f7eee336a9102a59433b9fc86dcc898f1c56f 100644
--- a/test/codegen/expect/misc.js
+++ b/test/codegen/expect/misc.js
@@ -22,6 +22,28 @@ dart_library.library('misc', null, /* Imports */[
return Generic;
});
let Generic = Generic$();
+ class Base extends core.Object {
+ Base() {
+ this.x = 1;
+ this.y = 2;
+ }
+ ['=='](obj) {
+ return dart.is(obj, Base) && dart.equals(dart.dload(obj, 'x'), this.x) && dart.equals(dart.dload(obj, 'y'), this.y);
+ }
+ }
+ class Derived extends core.Object {
+ Derived() {
+ this.z = 3;
+ }
+ ['=='](obj) {
+ return dart.is(obj, Derived) && dart.equals(dart.dload(obj, 'z'), this.z) && super['=='](obj);
+ }
+ }
+ function _isWhitespace(ch) {
+ return ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t';
+ }
+ dart.fn(_isWhitespace, core.bool, [core.String]);
+ let _escapeMap = dart.const(dart.map({'\n': '\\n', '\r': '\\r', '\f': '\\f', '\b': '\\b', '\t': '\\t', '\v': '\\v', '': '\\x7F'}));
function main() {
core.print(dart.toString(1));
core.print(dart.toString(1.0));
@@ -30,11 +52,14 @@ dart_library.library('misc', null, /* Imports */[
core.print(dart.equals(x, core.Object));
core.print(dart.equals(x, Generic));
core.print(new (Generic$(core.int))().type);
+ core.print(dart.equals(new Derived(), new Derived()));
}
dart.fn(main);
// Exports:
exports.UNINITIALIZED = UNINITIALIZED;
exports.Generic$ = Generic$;
exports.Generic = Generic;
+ exports.Base = Base;
+ exports.Derived = Derived;
exports.main = main;
});
« no previous file with comments | « lib/src/js/builder.dart ('k') | test/codegen/expect/misc.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698