OLD | NEW |
1 timing_test(function() { | 1 timing_test(function() { |
2 at(0 * 1000, function() { | 2 at(0 * 1000, function() { |
3 assert_styles("#target",{'left':'0px','backgroundColor':'rgb(176, 196, 222)'
}); | 3 assert_styles("#target",{'left':'0px','backgroundColor':'rgb(176, 196, 222)'
}); |
4 }); | 4 }); |
5 at(0.5 * 1000, function() { | 5 at(0.5 * 1000, function() { |
6 assert_styles("#target",{'left':'50px','backgroundColor':'rgb(176, 196, 222)
'}); | 6 assert_styles("#target",{'left':'50px','backgroundColor':'rgb(176, 196, 222)
'}); |
7 }); | 7 }); |
8 at(1.5 * 1000, function() { | 8 at(1.5 * 1000, function() { |
9 assert_styles("#target",{'left':'100px','backgroundColor':'rgb(176, 196, 222
)'}); | 9 assert_styles("#target",{'left':'100px','backgroundColor':'rgb(176, 196, 222
)'}); |
10 }); | 10 }); |
11 at(2 * 1000, function() { | 11 at(2 * 1000, function() { |
12 assert_styles("#target",{'left':'50px','backgroundColor':'rgb(176, 196, 222)
'}); | 12 assert_styles("#target",{'left':'50px','backgroundColor':'rgb(176, 196, 222)
'}); |
13 }); | 13 }); |
14 at(3 * 1000, function() { | 14 at(3 * 1000, function() { |
15 assert_styles("#target",{'left':'100px','backgroundColor':'rgb(0, 128, 0)'})
; | 15 assert_styles("#target",{'left':'100px','backgroundColor':'rgb(0, 128, 0)'})
; |
16 }); | 16 }); |
17 }, "Auto generated tests"); | 17 }, "Auto generated tests"); |
OLD | NEW |