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

Side by Side Diff: test/codegen/expect/domtest.js

Issue 1530563003: Generate all runtime files from dart. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged master 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 unified diff | Download patch
« no previous file with comments | « test/codegen/expect/dom/dom.js ('k') | test/codegen/expect/expect.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('domtest', null, /* Imports */[ 1 dart_library.library('domtest', null, /* Imports */[
2 "dart/_runtime", 2 'dart/_runtime',
3 'sunflower/dom', 3 'sunflower/dom',
4 'dart/core' 4 'dart/core'
5 ], /* Lazy imports */[ 5 ], /* Lazy imports */[
6 ], function(exports, dart, dom, core) { 6 ], function(exports, dart, dom, core) {
7 'use strict'; 7 'use strict';
8 let dartx = dart.dartx; 8 let dartx = dart.dartx;
9 function testNativeIndexers() { 9 function testNativeIndexers() {
10 let nodes = dom.document.querySelector('body').childNodes; 10 let nodes = dom.document.querySelector('body').childNodes;
11 for (let i = 0; dart.notNull(i) < dart.notNull(nodes.length); i = dart.notNu ll(i) + 1) { 11 for (let i = 0; dart.notNull(i) < dart.notNull(nodes.length); i = dart.notNu ll(i) + 1) {
12 let old = nodes[i]; 12 let old = nodes[i];
13 nodes[i] = dom.document.createElement('div'); 13 nodes[i] = dom.document.createElement('div');
14 core.print(dart.equals(nodes[i], old)); 14 core.print(dart.equals(nodes[i], old));
15 } 15 }
16 } 16 }
17 dart.fn(testNativeIndexers); 17 dart.fn(testNativeIndexers);
18 // Exports: 18 // Exports:
19 exports.testNativeIndexers = testNativeIndexers; 19 exports.testNativeIndexers = testNativeIndexers;
20 }); 20 });
OLDNEW
« no previous file with comments | « test/codegen/expect/dom/dom.js ('k') | test/codegen/expect/expect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698