Closed Bug 1329077 Opened 7 years ago Closed 7 years ago

Revert opening a new window hack for test_animation_performance_warning.html

Categories

(Core :: DOM: Animation, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

Details

Attachments

(2 files)

We change test_animation_performance_warning.html to opening a new window to use requetIdleCallback in the test in bug 1328255.  Once requestIdleCallback gets shipped on all channels, we can remove the hack.
Priority: -- → P3
Summary: Revert opening a new window hack for test_aniamtion_performance_warning.html → Revert opening a new window hack for test_animation_performance_warning.html
Comment on attachment 8869700 [details]
Bug 1329077 - Drop redundant waitForIdleCallback().

https://reviewboard.mozilla.org/r/141284/#review144958
Attachment #8869700 - Flags: review?(boris.chiou) → review+
Comment on attachment 8869699 [details]
Bug 1329077 - Revert the hack that opens a new window to use requestIdleCallback.

https://reviewboard.mozilla.org/r/141282/#review144962

Assuming most of code are copied, this looks good to me.

::: dom/animation/test/testcommon.js
(Diff revision 1)
> -                        "assert_greater_than_equal",
> -                        "assert_not_exists",
>                          "assert_between_inclusive",
>                          "assert_true", "assert_false",
>                          "assert_class_string", "assert_throws",
>                          "assert_unreached", "assert_regexp_match",
>                          "promise_test", "test"]) {
>      window[funcName] = opener[funcName].bind(opener);
>    }
>  
>    window.EventWatcher = opener.EventWatcher;
> -  // Used for requestLongerTimeout.
> -  window.W3CTest = opener.W3CTest;

So we can use these functions directly now, right? It seems that we still use ```assert_not_exists``` and ```requestLongerTimeout```.
Attachment #8869699 - Flags: review?(boris.chiou) → review+
(In reply to Boris Chiou [:boris] from comment #5)
> Comment on attachment 8869699 [details]
> Bug 1329077 - Revert the hack that opens a new window to use
> requestIdleCallback.
> 
> https://reviewboard.mozilla.org/r/141282/#review144962
> 
> Assuming most of code are copied, this looks good to me.
> 
> ::: dom/animation/test/testcommon.js
> (Diff revision 1)
> > -                        "assert_greater_than_equal",
> > -                        "assert_not_exists",
> >                          "assert_between_inclusive",
> >                          "assert_true", "assert_false",
> >                          "assert_class_string", "assert_throws",
> >                          "assert_unreached", "assert_regexp_match",
> >                          "promise_test", "test"]) {
> >      window[funcName] = opener[funcName].bind(opener);
> >    }
> >  
> >    window.EventWatcher = opener.EventWatcher;
> > -  // Used for requestLongerTimeout.
> > -  window.W3CTest = opener.W3CTest;
> 
> So we can use these functions directly now, right? It seems that we still
> use ```assert_not_exists``` and ```requestLongerTimeout```.

That's right!
Pushed by hikezoe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/81e7acdb8990
Revert the hack that opens a new window to use requestIdleCallback. r=boris
https://hg.mozilla.org/integration/autoland/rev/6f7dd28f9060
Drop redundant waitForIdleCallback(). r=boris
https://hg.mozilla.org/mozilla-central/rev/81e7acdb8990
https://hg.mozilla.org/mozilla-central/rev/6f7dd28f9060
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Assignee: nobody → hikezoe
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: