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

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

Issue 1182653002: Refactor runtime into libraries, better type reps (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Address comments 2 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 unified diff | Download patch
« no previous file with comments | « test/codegen/expect/dir/html_input_e.js ('k') | test/codegen/expect/fieldtest.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('domtest', null, /* Imports */[ 1 dart_library.library('domtest', null, /* Imports */[
2 "dart_runtime/dart",
2 'sunflower/dom', 3 'sunflower/dom',
3 'dart/core' 4 'dart/core'
4 ], /* Lazy imports */[ 5 ], /* Lazy imports */[
5 ], function(exports, dom, core) { 6 ], function(exports, dart, dom, core) {
6 'use strict'; 7 'use strict';
8 let dartx = dart.dartx;
7 function testNativeIndexers() { 9 function testNativeIndexers() {
8 let nodes = dom.document.querySelector('body').childNodes; 10 let nodes = dom.document.querySelector('body').childNodes;
9 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) {
10 let old = nodes[i]; 12 let old = nodes[i];
11 nodes[i] = dom.document.createElement('div'); 13 nodes[i] = dom.document.createElement('div');
12 core.print(dart.equals(nodes[i], old)); 14 core.print(dart.equals(nodes[i], old));
13 } 15 }
14 } 16 }
15 dart.fn(testNativeIndexers); 17 dart.fn(testNativeIndexers);
16 // Exports: 18 // Exports:
17 exports.testNativeIndexers = testNativeIndexers; 19 exports.testNativeIndexers = testNativeIndexers;
18 }); 20 });
OLDNEW
« no previous file with comments | « test/codegen/expect/dir/html_input_e.js ('k') | test/codegen/expect/fieldtest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698