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

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

Issue 1145243013: Check for duplicate library names (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments 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 var domtest = dart.defineLibrary(domtest, {}); 1 dart.library('domtest', null, /* Imports */[
2 var dom = dart.import(dom); 2 'sunflower/dom',
3 var core = dart.import(core); 3 'dart/core'
4 (function(exports, dom, core) { 4 ], /* Lazy imports */[
5 ], function(exports, dom, core) {
5 'use strict'; 6 'use strict';
6 function testNativeIndexers() { 7 function testNativeIndexers() {
7 let nodes = dom.document.querySelector('body').childNodes; 8 let nodes = dom.document.querySelector('body').childNodes;
8 for (let i = 0; dart.notNull(i) < dart.notNull(nodes.length); i = dart.notNu ll(i) + 1) { 9 for (let i = 0; dart.notNull(i) < dart.notNull(nodes.length); i = dart.notNu ll(i) + 1) {
9 let old = nodes[i]; 10 let old = nodes[i];
10 nodes[i] = dom.document.createElement('div'); 11 nodes[i] = dom.document.createElement('div');
11 core.print(dart.equals(nodes[i], old)); 12 core.print(dart.equals(nodes[i], old));
12 } 13 }
13 } 14 }
14 dart.fn(testNativeIndexers); 15 dart.fn(testNativeIndexers);
15 // Exports: 16 // Exports:
16 exports.testNativeIndexers = testNativeIndexers; 17 exports.testNativeIndexers = testNativeIndexers;
17 })(domtest, dom, core); 18 });
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