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

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

Issue 688033003: Fix line numbers in JavaScript stack traces (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove unnecessary 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.sky" /> 3 <link rel="import" href="../resources/chai.sky" />
4 <link rel="import" href="../resources/mocha.sky" /> 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;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 observer.disconnect(); 189 observer.disconnect();
190 done(); 190 done();
191 } 191 }
192 192
193 start(); 193 start();
194 }); 194 });
195 195
196 it('should have correct behavior of transient observation with complex movemen t', function(done) { 196 it('should have correct behavior of transient observation with complex movemen t', function(done) {
197 var observer; 197 var observer;
198 var text;
198 var subDiv; 199 var subDiv;
199 var mutations; 200 var mutations;
201 var subDiv2;
202 var subDiv3;
200 203
201 function start() { 204 function start() {
202 var div = document.createElement('div'); 205 var div = document.createElement('div');
203 subDiv = div.appendChild(document.createElement('div')); 206 subDiv = div.appendChild(document.createElement('div'));
204 subDiv2 = subDiv.appendChild(document.createElement('div')); 207 subDiv2 = subDiv.appendChild(document.createElement('div'));
205 subDiv2.textContent = 'hello, world'; 208 subDiv2.textContent = 'hello, world';
206 subDiv3 = document.createElement('div'); 209 subDiv3 = document.createElement('div');
207 210
208 observer = new MutationObserver(function(records) { 211 observer = new MutationObserver(function(records) {
209 mutations = records; 212 mutations = records;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 assert.equal(mutations[5].attributeName, "g"); 258 assert.equal(mutations[5].attributeName, "g");
256 259
257 observer.disconnect(); 260 observer.disconnect();
258 done(); 261 done();
259 } 262 }
260 start(); 263 start();
261 }); 264 });
262 }); 265 });
263 </script> 266 </script>
264 </html> 267 </html>
OLDNEW
« no previous file with comments | « sky/tests/mutation-observer/mutation-record-nullity.sky ('k') | sky/tests/parser/script-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698