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

Side by Side Diff: test/codegen/expect/language/multiline_newline_test_04_multi.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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
(Empty)
1 dart_library.library('language/multiline_newline_test_04_multi', null, /* Import s */[
2 'dart_sdk',
3 'expect'
4 ], function load__multiline_newline_test_04_multi(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect;
10 const multiline_newline_test_04_multi = Object.create(null);
11 const multiline_newline_cr = Object.create(null);
12 const multiline_newline_crlf = Object.create(null);
13 const multiline_newline_lf = Object.create(null);
14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
15 multiline_newline_test_04_multi.main = function() {
16 expect$.Expect.equals(4, multiline_newline_cr.constantMultilineString[dartx. length]);
17 expect$.Expect.equals(4, multiline_newline_crlf.constantMultilineString[dart x.length]);
18 expect$.Expect.equals(4, multiline_newline_lf.constantMultilineString[dartx. length]);
19 expect$.Expect.equals(multiline_newline_cr.constantMultilineString, multilin e_newline_crlf.constantMultilineString);
20 expect$.Expect.equals(multiline_newline_crlf.constantMultilineString, multil ine_newline_lf.constantMultilineString);
21 expect$.Expect.equals(multiline_newline_lf.constantMultilineString, multilin e_newline_cr.constantMultilineString);
22 expect$.Expect.equals(4, multiline_newline_cr.nonConstantMultilineString[dar tx.length]);
23 expect$.Expect.equals(4, multiline_newline_crlf.nonConstantMultilineString[d artx.length]);
24 expect$.Expect.equals(4, multiline_newline_lf.nonConstantMultilineString[dar tx.length]);
25 expect$.Expect.equals(multiline_newline_cr.nonConstantMultilineString, multi line_newline_crlf.nonConstantMultilineString);
26 expect$.Expect.equals(multiline_newline_crlf.nonConstantMultilineString, mul tiline_newline_lf.nonConstantMultilineString);
27 expect$.Expect.equals(multiline_newline_lf.nonConstantMultilineString, multi line_newline_cr.nonConstantMultilineString);
28 let c1 = multiline_newline_cr.constantMultilineString == multiline_newline_c rlf.constantMultilineString ? true : null;
29 let c2 = multiline_newline_crlf.constantMultilineString == multiline_newline _lf.constantMultilineString ? true : null;
30 let c3 = multiline_newline_lf.constantMultilineString == multiline_newline_c r.constantMultilineString ? true : null;
31 expect$.Expect.isTrue(c1);
32 expect$.Expect.isTrue(c2);
33 expect$.Expect.isTrue(c3);
34 let c7 = multiline_newline_cr.constantMultilineString != multiline_newline_c rlf.constantMultilineString ? true : null;
35 let c8 = multiline_newline_crlf.constantMultilineString != multiline_newline _lf.constantMultilineString ? true : null;
36 let c9 = multiline_newline_lf.constantMultilineString != multiline_newline_c r.constantMultilineString ? true : null;
37 expect$.Expect.isNull(c7);
38 expect$.Expect.isNull(c8);
39 expect$.Expect.isNull(c9);
40 let c10 = dart.test(c7) ? 1 : 2;
41 };
42 dart.fn(multiline_newline_test_04_multi.main, VoidTodynamic());
43 multiline_newline_cr.constantMultilineString = "a\rb\r";
44 multiline_newline_cr.nonConstantMultilineString = "a\rb\r";
45 multiline_newline_crlf.constantMultilineString = "a\r\nb\r\n";
46 multiline_newline_crlf.nonConstantMultilineString = "a\r\nb\r\n";
47 multiline_newline_lf.constantMultilineString = "a\nb\n";
48 multiline_newline_lf.nonConstantMultilineString = "a\nb\n";
49 // Exports:
50 exports.multiline_newline_test_04_multi = multiline_newline_test_04_multi;
51 exports.multiline_newline_cr = multiline_newline_cr;
52 exports.multiline_newline_crlf = multiline_newline_crlf;
53 exports.multiline_newline_lf = multiline_newline_lf;
54 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698