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

Side by Side Diff: sky/tests/mutation-observer/observe-subtree.sky

Issue 685623002: Move the tests from .html to .sky (Closed) Base URL: https://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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <link rel="import" href="../resources/chai.html" /> 3 <link rel="import" href="../resources/chai.sky" />
4 <link rel="import" href="../resources/mocha.html" /> 4 <link rel="import" href="../resources/mocha.sky" />
5 <script> 5 <script>
6 describe('MutationObserver.observe on a subtree', function() { 6 describe('MutationObserver.observe on a subtree', function() {
7 it('should handle basic aspects of subtree observation', function(done) { 7 it('should handle basic aspects of subtree observation', function(done) {
8 var observer; 8 var observer;
9 var subDiv; 9 var subDiv;
10 var mutations; 10 var mutations;
11 11
12 function start() { 12 function start() {
13 var div = document.createElement('div'); 13 var div = document.createElement('div');
14 subDiv = div.appendChild(document.createElement('div')); 14 subDiv = div.appendChild(document.createElement('div'));
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 assert.equal(mutations[5].attributeName, "g"); 255 assert.equal(mutations[5].attributeName, "g");
256 256
257 observer.disconnect(); 257 observer.disconnect();
258 done(); 258 done();
259 } 259 }
260 start(); 260 start();
261 }); 261 });
262 }); 262 });
263 </script> 263 </script>
264 </html> 264 </html>
OLDNEW
« no previous file with comments | « sky/tests/mutation-observer/observe-subtree.html ('k') | sky/tests/mutation-observer/observer-wrapper-dropoff.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698