| OLD | NEW |
| 1 (function(){ | 1 (function(){ |
| 2 'use strict' | 2 'use strict' |
| 3 | 3 |
| 4 function createElement() { | 4 function createElement() { |
| 5 var element = document.createElement('div'); | 5 var element = document.createElement('div'); |
| 6 element.style.position = 'absolute'; | 6 element.style.position = 'absolute'; |
| 7 document.documentElement.appendChild(element); | 7 document.documentElement.appendChild(element); |
| 8 return element; | 8 return element; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 var computedStyle = getComputedStyle(element); | 24 var computedStyle = getComputedStyle(element); |
| 25 for (var property in expectations[progress]) { | 25 for (var property in expectations[progress]) { |
| 26 assert_equals(computedStyle[property], expectations[progress][property], | 26 assert_equals(computedStyle[property], expectations[progress][property], |
| 27 property + ' at ' + (progress * 100) + '%' + (description ? ' ' + desc
ription : '')); | 27 property + ' at ' + (progress * 100) + '%' + (description ? ' ' + desc
ription : '')); |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 | 31 |
| 32 window.assertAnimationStyles = assertAnimationStyles; | 32 window.assertAnimationStyles = assertAnimationStyles; |
| 33 })(); | 33 })(); |
| OLD | NEW |