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

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: Add missing file 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
OLDNEW
1 dart.library('domtest', null, /* Imports */[ 1 loader.library('domtest', null, /* Imports */[
2 "dart/dart_runtime",
3 "dart/dartx",
2 'sunflower/dom', 4 'sunflower/dom',
3 'dart/core' 5 'dart/core'
4 ], /* Lazy imports */[ 6 ], /* Lazy imports */[
5 ], function(exports, dom, core) { 7 ], function(exports, dart, dartx, dom, core) {
6 'use strict'; 8 'use strict';
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

Powered by Google App Engine
This is Rietveld 408576698