Closed
Bug 964418
Opened 11 years ago
Closed 11 years ago
Update mochiperf tests to use dom utils frame time recording
Categories
(Firefox for Metro Graveyard :: Tests, defect, P2)
Tracking
(firefox28 fixed, firefox29 fixed)
RESOLVED
FIXED
Firefox 29
People
(Reporter: jimm, Assigned: jimm)
References
Details
(Whiteboard: [feature] p=1 [qa-])
Attachments
(2 files)
(deleted),
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
Also added a couple apzc tests. I'm also going to point the graphs page at mc vs inbound and clear the data file.
Attachment #8366152 -
Flags: review?(mbrubeck)
Comment 2•11 years ago
|
||
Hey Jim, are you taking this bug for IT#23? If so, can you provide a point value. Thanks.
Flags: needinfo?(jmathies)
Comment 3•11 years ago
|
||
Comment on attachment 8366152 [details] [diff] [review]
patch
Review of attachment 8366152 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/metro/base/tests/mochiperf/res/ripples.html
@@ +230,5 @@
> progress = timestamp - start;
> ripples.run(progress);
> var time = new Date();
> var diff = time.getTime() - now.getTime();
> + if (diff < 5000) { // ten seconds
nit: out of date comment
::: browser/metro/base/tests/mochitest/head.js
@@ +223,5 @@
> +function hideNavBar()
> +{
> + let promise = waitForEvent(Elements.navbar, "transitionend");
> + if (ContextUI.navbarVisible) {
> + ContextUI.dismissNavbar();
"let promise = waitForEvent..." should be moved inside the "if" statement.
@@ +226,5 @@
> + if (ContextUI.navbarVisible) {
> + ContextUI.dismissNavbar();
> + return promise;
> + }
> +}
In the case where the navbar is *not* visible, this should return an immediately-resolved promise instead of returning nothing (to prevent callers from failing unpredictably if they expect a promise). For example, you could add this at the end of the function:
return Promise.resolve(null);
Attachment #8366152 -
Flags: review?(mbrubeck) → review+
Assignee | ||
Comment 4•11 years ago
|
||
> "let promise = waitForEvent..." should be moved inside the "if" statement.
>
> @@ +226,5 @@
> > + if (ContextUI.navbarVisible) {
> > + ContextUI.dismissNavbar();
> > + return promise;
> > + }
> > +}
>
> In the case where the navbar is *not* visible, this should return an
> immediately-resolved promise instead of returning nothing (to prevent
> callers from failing unpredictably if they expect a promise). For example,
> you could add this at the end of the function:
>
> return Promise.resolve(null);
Thanks. I updated both show and hide. Will push to try first.
Flags: needinfo?(jmathies)
Whiteboard: p=1
Updated•11 years ago
|
Blocks: metrov1it23
Status: NEW → ASSIGNED
Priority: -- → P2
QA Contact: jbecerra
Whiteboard: p=1 → [feature] p=1
Assignee | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Assignee | ||
Comment 7•11 years ago
|
||
Adding a couple tests and tweaking a few values.
I also did some testing with these tweaking various apzc prefs, specifically the repaint_interval values. Generally I don't see a big difference there as long as the interval is within a band of values (25 -> 70 msec). So I don't think those prefs play much of a role in redraw performance. At least not on my surface pro.
Attachment #8366638 -
Flags: review?(mbrubeck)
Updated•11 years ago
|
Attachment #8366638 -
Flags: review?(mbrubeck) → review+
Assignee | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Landed on Aurora with Matt's blessing as a bustage fix for bug 913609.
https://hg.mozilla.org/releases/mozilla-aurora/rev/0a8bb4f60f03
status-firefox28:
--- → fixed
status-firefox29:
--- → fixed
Comment 10•11 years ago
|
||
Flags: in-testsuite+
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
Could you please give some guidance in order for the QA to verify this? Thanks!
Flags: needinfo?(jmathies)
Assignee | ||
Comment 13•11 years ago
|
||
(In reply to Manuela Muntean [:Manuela] [QA] from comment #12)
> Could you please give some guidance in order for the QA to verify this?
> Thanks!
nothing to verify here, these tests are working.
Flags: needinfo?(jmathies)
Comment 14•11 years ago
|
||
Thanks, Jim! Marking this [qa-].
Whiteboard: [feature] p=1 → [feature] p=1 [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•