web-animations/web-animations-js — pull request #434 by mithro (2013-08-21 03:00:03+00:00)
Title: Creation of a timing log in tests

This was invaluable when debugging the tests under IE as it allowed me to see what was called when.

Example log outpug;

```
TestTimeline constructor undefined
TestTimeline schedule 0 function () {}
TestTimeline schedule 0 "#background at t=0s"
TestTimeline schedule 0 "#border at t=0s"
TestTimeline schedule 0 "#table at t=0s"
TestTimeline schedule 0 "#opacity at t=0s"
TestTimeline schedule 0 "#outline at t=0s"
TestTimeline schedule 0 "#padding at t=0s"
TestTimeline schedule 0 "#transform at t=0s"
TestTimeline schedule 0 "#text at t=0s"
TestTimeline schedule 1000 "#background at t=1s"
TestTimeline schedule 1000 "#border at t=1s"
TestTimeline schedule 1000 "#table at t=1s"
TestTimeline schedule 1000 "#opacity at t=1s"
TestTimeline schedule 1000 "#outline at t=1s"
TestTimeline schedule 1000 "#padding at t=1s"
TestTimeline schedule 1000 "#transform at t=1s"
TestTimeline schedule 1000 "#text at t=1s"
TestTimeline schedule 2000 "#background at t=2s"
TestTimeline schedule 2000 "#border at t=2s"
TestTimeline schedule 2000 "#table at t=2s"
TestTimeline schedule 2000 "#opacity at t=2s"
TestTimeline schedule 2000 "#outline at t=2s"
TestTimeline schedule 2000 "#padding at t=2s"
TestTimeline schedule 2000 "#transform at t=2s"
TestTimeline schedule 2000 "#text at t=2s"
testharness_after_loaded
testharness_timeline_setup
TestTimeline now 0
TestTimeline setTime 0
TestTimeline setting time to 0
TestTimeline raf callback function (rafTime) {
documentTimeZeroAsRafTime = rafTime;
} 0
TestTimeline raf callback function (rafTime, isRepeat) {
// Don't tick till the page is loaded....
if (!isDefined(documentTimeZeroAsRafTime)) {
...
}
} 0
TestTimelineGroup calling function function () {}
TestTimelineGroup calling test "#background at t=0s"
TestTimelineGroup calling test "#border at t=0s"
TestTimelineGroup calling test "#table at t=0s"
TestTimelineGroup calling test "#opacity at t=0s"
TestTimelineGroup calling test "#outline at t=0s"
TestTimelineGroup calling test "#padding at t=0s"
TestTimelineGroup calling test "#transform at t=0s"
TestTimelineGroup calling test "#text at t=0s"
TestTimeline setTime 103.22900000028312
TestTimeline setting time to 103.22900000028312
TestTimeline raf callback function (rafTime, isRepeat) {
// Don't tick till the page is loaded....
if (!isDefined(documentTimeZeroAsRafTime)) {
...
}
} 103.22900000028312
TestTimeline setTime 149.86900007352233
TestTimeline setting time to 149.86900007352233
TestTimeline raf callback function (rafTime, isRepeat) {
// Don't tick till the page is loaded....
if (!isDefined(documentTimeZeroAsRafTime)) {
...
}
} 149.86900007352233
TestTimeline setTime 1000.7550000445917
TestTimeline setting time to 1000
TestTimeline raf callback function (rafTime, isRepeat) {
// Don't tick till the page is loaded....
if (!isDefined(documentTimeZeroAsRafTime)) {
...
}
} 1000
TestTimelineGroup calling test "#background at t=1s"
TestTimelineGroup calling test "#border at t=1s"
TestTimelineGroup calling test "#table at t=1s"
TestTimelineGroup calling test "#opacity at t=1s"
TestTimelineGroup calling test "#outline at t=1s"
TestTimelineGroup calling test "#padding at t=1s"
TestTimelineGroup calling test "#transform at t=1s"
TestTimelineGroup calling test "#text at t=1s"
TestTimeline setting time to 1000.7550000445917
TestTimeline raf callback function (rafTime, isRepeat) {
// Don't tick till the page is loaded....
if (!isDefined(documentTimeZeroAsRafTime)) {
...
}
} 1000.7550000445917
TestTimeline setTime 1137.0300000999123
TestTimeline setting time to 1137.0300000999123
TestTimeline raf callback function (rafTime, isRepeat) {
// Don't tick till the page is loaded....
if (!isDefined(documentTimeZeroAsRafTime)) {
...
}
} 1137.0300000999123
TestTimeline setTime 1935.9340000664815
TestTimeline setting time to 1935.9340000664815
TestTimeline raf callback function (rafTime, isRepeat) {
// Don't tick till the page is loaded....
if (!isDefined(documentTimeZeroAsRafTime)) {
...
}
} 1935.9340000664815
TestTimeline setTime 2006.5230000764132
TestTimeline setting time to 2000
TestTimeline raf callback function (rafTime, isRepeat) {
// Don't tick till the page is loaded....
if (!isDefined(documentTimeZeroAsRafTime)) {
...
}
} 2000
TestTimelineGroup calling test "#background at t=2s"
TestTimelineGroup calling test "#border at t=2s"
TestTimelineGroup calling test "#table at t=2s"
TestTimelineGroup calling test "#opacity at t=2s"
TestTimelineGroup calling test "#outline at t=2s"
TestTimelineGroup calling test "#padding at t=2s"
TestTimelineGroup calling test "#transform at t=2s"
TestTimelineGroup calling test "#text at t=2s"
TestTimeline setting time to 2006.5230000764132
TestTimeline raf callback function (rafTime, isRepeat) {
// Don't tick till the page is loaded....
if (!isDefined(documentTimeZeroAsRafTime)) {
...
}
} 2006.5230000764132
TestTimeline setTime 2200
TestTimeline setting time to 2200
```