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

Side by Side Diff: sky/tests/mutation-observer/delivery-order.sky

Issue 694423002: Replace <link rel="import"> with <import> (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 <html> 1 <html>
2 <link rel="import" href="../resources/chai.sky" /> 2 <import src="../resources/chai.sky" />
3 <link rel="import" href="../resources/mocha.sky" /> 3 <import src="../resources/mocha.sky" />
4 <script> 4 <script>
5 describe('MutationObserver', function() { 5 describe('MutationObserver', function() {
6 it('should deliver in order of creation', function(done) { 6 it('should deliver in order of creation', function(done) {
7 var order = []; 7 var order = [];
8 var observers = []; 8 var observers = [];
9 9
10 function setUpOrdering(num) { 10 function setUpOrdering(num) {
11 observers.push(new MutationObserver(function(mutations) { 11 observers.push(new MutationObserver(function(mutations) {
12 order.push(num); 12 order.push(num);
13 })); 13 }));
(...skipping 17 matching lines...) Expand all
31 div.appendChild(document.createTextNode('hello')); 31 div.appendChild(document.createTextNode('hello'));
32 div.firstChild.textContent = 'goodbye'; 32 div.firstChild.textContent = 'goodbye';
33 setTimeout(function() { 33 setTimeout(function() {
34 assert.deepEqual(order, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); 34 assert.deepEqual(order, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
35 done(); 35 done();
36 }, 0); 36 }, 0);
37 }); 37 });
38 }); 38 });
39 </script> 39 </script>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698