Commit Graph

267 Commits

Author SHA1 Message Date
Tom Ritter
aa82f54ab6 Bug 1435296 Address test failures caused by bumping timer precision to 2 ms r=baku
There are a few different reasons why tests needed updating (not an exhaustive list):

- Tests assume that successive operations take place at different times.
- Tests assume that an operation took a minimum amount of time.
- Tests hardcodes a specific delay.

In most cases we hardcode the preference off. In some cases this is the best approach,
in others, we would like to improve. The bug for tracking those improvements is Bug 1429648

An improvement that is present in some tests is to hardcode a specific precision reduction
that is acceptable based on the confides of the test. (Obviously this needs to be a fix for
the test framework and not a requirement on the feature being tested.)

In a few places, the test itself can be fixed, for example to no longer require the end
time of an operation to be strictly greater than the start time, and allows it to be equal
to it.

MozReview-Commit-ID: J59c7xQtZZJ

--HG--
extra : rebase_source : df8a03e76eaf9cdc9524dbb3eb9035af237e534b
2018-02-12 11:39:41 -06:00
Alexandre Poirot
e563788ea7 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs

--HG--
extra : rebase_source : bb2805652c85d74a3e888326f4afa4b6857afa64
2018-02-07 01:37:36 -08:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Daisuke Akatsuka
afb89c1360 Bug 1426194 - Part 2: Add test. r=pbro
MozReview-Commit-ID: 9A0hRjiYGTE

--HG--
extra : rebase_source : 95a5310a5755f951baeabf62ddc8f9c7eb3abe9d
2017-12-22 00:49:18 +09:00
Daisuke Akatsuka
7d7ca7e5f3 Bug 1426194 - Part 1: Correspond to the keyframes which have same offset. r=pbro
The problem with this bug was that it did not correspond to animations that
have multiple keyframes with the same offset.

In summary graph, although we were changing the resolution for the graph
creation by the distance of offset between keyframes, as the calculation of
resolution between keyframes with equivalent offset was infinite, generation
was not completed and it was in a state of freezing.
In here, in case of zero distance of offsets, we make avoiding to affect to
changing the resolution.

In addition, the detail graph did not display correctly.
For example, there is an animation below.

div.animate(
  [
    {
      offset: 0,
      opacity: 1,
    },
    {
      offset: 0.5,
      opacity: 0.5,
    },
    {
      offset: 0.5,
      opacity: 0.1,
    },
    {
      offset: 1,
      opacity: 1,
    },
  ],
  1000
);

In this animation, opacity changes from 1 to 0.5 during 0 - 499ms, from 0.1 to 1
after 500ms.
So, opacity at offset 0.5 behaves 0.5 during 0 - 499ms, 0.1 after 500ms.
Since current animation inspector creates the graph with computed value of the
time of offset, the opacity of offset 0.5 always is 0.1 in the example,
was not correct.
As a solution, same to the actual animation work, create the graph between each
keyframes with range that from start keyframe offset time to just before the
time of end keyframe offset time.
Also, in same offsets, connects between just before the time of the offset time
and the offset time.
So, in the example, we separate as below, then calculate the each coordinates,
then combine as graph shape.

1: 0 ~ 499.999ms
2: 499.999 ~ 500ms (same offsets)
3: 500 ~ 999.999ms
4: 1000ms

MozReview-Commit-ID: p4Cn2N9iFt

--HG--
extra : rebase_source : 0f175fa0b7a3c882171e59a6e4a94bb4802e96d2
2017-12-22 00:49:10 +09:00
Florian Quèze
0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Daisuke Akatsuka
416b163f1d Bug 1422218 - Part 4: Add test. r=pbro
MozReview-Commit-ID: IqFXntwxGK5

--HG--
extra : rebase_source : ce9036ea8b4fc2ce7bdc9101509791a57f0bb59b
2017-12-07 09:36:44 +09:00
Daisuke Akatsuka
f9e31963e7 Bug 1422218 - Part 3: Correspond to round-off error since we should use use more accurate values. r=pbro
MozReview-Commit-ID: LSEAI3vMXNX

--HG--
extra : rebase_source : ff0e31b4c04c5f84abcc00c07c41f1c4a1093e9e
2017-12-07 09:36:28 +09:00
Daisuke Akatsuka
535c533caf Bug 1422218 - Part 2: Make drawing resolution to increase for reflecting to summary graph. r=pbro
MozReview-Commit-ID: 30hr3wHqxyy

--HG--
extra : rebase_source : 4837c145834cf5d5b6abbc1b995207e2f3382a33
2017-12-06 13:11:38 +09:00
Daisuke Akatsuka
589c8a3402 Bug 1422218 - Part 1: Get segments of property graph at keyframe offset explicit. r=pbro
MozReview-Commit-ID: 9PIngKGGRhX

--HG--
extra : rebase_source : 5e5b3f29d63a0e2c92764584fe77f4b297769474
2017-12-06 10:41:36 +09:00
Michael Ratcliffe
d0a661eea9 Bug 1419487 - Remaing DevTools components to ES6 Classes, prop-types and react-dom-factories r=gl
MozReview-Commit-ID: HjglFjui6XJ

--HG--
extra : rebase_source : 9529c18f141246f3d67f0cf7d5d3e82f54e5bbed
2017-11-22 12:15:43 +00:00
Julian Descottes
4db2619112 Bug 1406375 - update animation inspector test to support formatted numbers;r=pbro
Integers used to skip localization & formatting.
We used to have (for 2 decimals formatting)
1000   -> 1000
1000.1 -> 1,000.10

With the other patches attached here, the behavior is now consistent
1000   -> 1,000
1000.1 -> 1,000.10

This changeset updates some regexp in an animation inspector test to be
compatible with the new format.

MozReview-Commit-ID: 4YUNGlKp98z

--HG--
extra : rebase_source : 638fced7a884a01c5fcd41e0df68e7c8d39c2e8c
2017-10-19 17:00:43 +02:00
Daisuke Akatsuka
f0d6c9132d Bug 1407900 - Part 4: Add test for can't open detail. r=pbro
MozReview-Commit-ID: AOHImw0VINL

--HG--
extra : rebase_source : 38e5e769adec5699de5d946e07aa9e387bc2023b
2017-10-16 13:52:09 +09:00
Daisuke Akatsuka
d15d256b93 Bug 1407900 - Part 3: Fix the bug that can't open detail panel if closed detail panel was showing clicked animation. r=pbro
MozReview-Commit-ID: 6sYhDqtrZ2b

--HG--
extra : rebase_source : 5385d4ed4e10992ae6ea2745d56af0baf282b092
2017-10-16 13:52:06 +09:00
Daisuke Akatsuka
f58703bdac Bug 1407900 - Part 2: Add test for hidden panel. r=pbro
MozReview-Commit-ID: 2ied0w6KY14

--HG--
extra : rebase_source : 55b0c6cebc4aae28743dfeb09fd84b2d2501bb9e
2017-10-16 13:52:02 +09:00
Daisuke Akatsuka
0447dafe38 Bug 1407900 - Part 1: Avoid updating animations UI during hidden. r=pbro
MozReview-Commit-ID: Dl0NaIkeyWM

--HG--
extra : rebase_source : 2a93bfb7499890fdcf407f68113d2fc03bc32f40
2017-10-16 10:17:53 +09:00
Daisuke Akatsuka
7451333ace Bug 1405983 - Part 2: Modify tests for delay. r=pbro
MozReview-Commit-ID: 6ByuW2Q33Vf

--HG--
extra : rebase_source : d5418ba73272ab9e42095f3a52b10f49d1eb9c69
2017-10-10 10:51:27 +09:00
Daisuke Akatsuka
56b1da1cfb Bug 1405983 - Part 1: Display delay area in summary graph as 0 if fill is none or forwards. r=pbro
MozReview-Commit-ID: 6PRlPThxRw8

--HG--
extra : rebase_source : afe01b042e7b181975c13fcfb8d0e53d796848c5
2017-10-10 10:51:22 +09:00
Dan Epstein
b9e816d060 Bug 1402394 CamelCase all React component files in \devtools\client\shared\components\. r=pbro
MozReview-Commit-ID: HH4mbqB6RTK

--HG--
rename : devtools/client/shared/components/autocomplete-popup.js => devtools/client/shared/components/AutoCompletePopup.js
rename : devtools/client/shared/components/frame.js => devtools/client/shared/components/Frame.js
rename : devtools/client/shared/components/h-split-box.js => devtools/client/shared/components/HSplitBox.js
rename : devtools/client/shared/components/notification-box.css => devtools/client/shared/components/NotificationBox.css
rename : devtools/client/shared/components/notification-box.js => devtools/client/shared/components/NotificationBox.js
rename : devtools/client/shared/components/search-box.js => devtools/client/shared/components/SearchBox.js
rename : devtools/client/shared/components/sidebar-toggle.css => devtools/client/shared/components/SidebarToggle.css
rename : devtools/client/shared/components/sidebar-toggle.js => devtools/client/shared/components/SidebarToggle.js
rename : devtools/client/shared/components/stack-trace.js => devtools/client/shared/components/StackTrace.js
rename : devtools/client/shared/components/tree.js => devtools/client/shared/components/Tree.js
rename : devtools/client/shared/components/splitter/draggable.js => devtools/client/shared/components/splitter/Draggable.js
rename : devtools/client/shared/components/splitter/split-box.css => devtools/client/shared/components/splitter/SplitBox.css
rename : devtools/client/shared/components/splitter/split-box.js => devtools/client/shared/components/splitter/SplitBox.js
rename : devtools/client/shared/components/tabs/tabbar.css => devtools/client/shared/components/tabs/TabBar.css
rename : devtools/client/shared/components/tabs/tabbar.js => devtools/client/shared/components/tabs/TabBar.js
rename : devtools/client/shared/components/tabs/tabs.css => devtools/client/shared/components/tabs/Tabs.css
rename : devtools/client/shared/components/tabs/tabs.js => devtools/client/shared/components/tabs/Tabs.js
rename : devtools/client/shared/components/tree/label-cell.js => devtools/client/shared/components/tree/LabelCell.js
rename : devtools/client/shared/components/tree/object-provider.js => devtools/client/shared/components/tree/ObjectProvider.js
rename : devtools/client/shared/components/tree/tree-cell.js => devtools/client/shared/components/tree/TreeCell.js
rename : devtools/client/shared/components/tree/tree-header.js => devtools/client/shared/components/tree/TreeHeader.js
rename : devtools/client/shared/components/tree/tree-row.js => devtools/client/shared/components/tree/TreeRow.js
rename : devtools/client/shared/components/tree/tree-view.css => devtools/client/shared/components/tree/TreeView.css
rename : devtools/client/shared/components/tree/tree-view.js => devtools/client/shared/components/tree/TreeView.js
extra : rebase_source : 5ef89b4169dda156a8160d4d21655147f4d9da11
2017-09-27 01:12:13 -04:00
Daisuke Akatsuka
1d33654619 Bug 1383974 - Part 4: Modify test for tooltip for animation-timing-function. r=pbro
MozReview-Commit-ID: BYr5dLw61DZ

--HG--
extra : rebase_source : 2e0c4277f43c0fd0ceab6d7e4c7d4f75d04c6115
2017-09-25 08:44:06 +09:00
Daisuke Akatsuka
da64729896 Bug 1383974 - Part 3: Display animation-timing-function if CSS Animations. r=pbro
MozReview-Commit-ID: CwtdijaEsae

--HG--
extra : rebase_source : 3f83086bb352d72396ed54b46f9da11a8bbad61f
2017-09-25 08:44:05 +09:00
Daisuke Akatsuka
360dac1f4a Bug 1383974 - Part 2: Add tests for easing hint in keyframes. r=pbro
MozReview-Commit-ID: BgE6EzrRSl0

--HG--
extra : rebase_source : 6b951d935c1a53f4f3c9b52926d88b287eecaccf
2017-09-25 08:44:05 +09:00
Daisuke Akatsuka
054392da3b Bug 1383974 - Part 1: Display easing in keyframes. r=pbro
MozReview-Commit-ID: 8pIUMAurfS3

--HG--
extra : rebase_source : d7acb339c012bd67cb1a68975e6934afa995eb5c
2017-09-25 08:44:05 +09:00
Sebastian Hengst
ecf2de8593 Backed out changeset 693f32f563d2 (bug 1383974) for failing devtools' devtools/client/animationinspector/test/browser_animation_detail_easings.js. r=backout 2017-09-22 18:12:42 +02:00
Sebastian Hengst
9a192e55b1 Backed out changeset ac3850461834 (bug 1383974) 2017-09-22 18:11:56 +02:00
Sebastian Hengst
e42733acb1 Backed out changeset f951257a6856 (bug 1383974) 2017-09-22 18:11:50 +02:00
Sebastian Hengst
62cc04eca7 Backed out changeset 588aa1f227f1 (bug 1383974) 2017-09-22 18:11:45 +02:00
Daisuke Akatsuka
4e05ed9eef Bug 1383974 - Part 4: Modify test for tooltip for animation-timing-function. r=pbro
MozReview-Commit-ID: BYr5dLw61DZ

--HG--
extra : rebase_source : 82388c1a7562bef76de463e8b58b4f4a930dbdf9
2017-09-22 22:38:41 +09:00
Daisuke Akatsuka
5948d3a5f0 Bug 1383974 - Part 3: Display animation-timing-function if CSS Animations. r=pbro
MozReview-Commit-ID: CwtdijaEsae

--HG--
extra : rebase_source : ae65f5866e7a523a38551705f7cea1ecfe986477
2017-09-22 22:37:01 +09:00
Daisuke Akatsuka
1806706cee Bug 1383974 - Part 2: Add tests for easing hint in keyframes. r=pbro
MozReview-Commit-ID: BgE6EzrRSl0

--HG--
extra : rebase_source : 2e3e64ff994855fcfe85c1ce0688231d44704428
2017-09-22 22:36:58 +09:00
Daisuke Akatsuka
d715355245 Bug 1383974 - Part 1: Display easing in keyframes. r=pbro
MozReview-Commit-ID: 8pIUMAurfS3

--HG--
extra : rebase_source : 812697b9786b0237b5e40ec7b38cf5c130b62c82
2017-09-22 22:36:53 +09:00
Daisuke Akatsuka
665aea48f1 Bug 1401128 - Part 2: Modify test to change the way to send mouse event. r=pbro
MozReview-Commit-ID: GOGJjRowa0W

--HG--
extra : rebase_source : 33213759fce9a14d688e06f04fb8256aca57ff22
2017-09-20 22:15:26 +09:00
Daisuke Akatsuka
f9bedb97d1 Bug 1366989 - Part 3: Add test for updating the bounds of summary graph, delay and endDelay element. r=pbro
MozReview-Commit-ID: Dwa2n471M64

--HG--
extra : rebase_source : 0ee7e57b2fb124bf76d88459eca64902b365eaa8
2017-09-19 11:00:54 +09:00
Daisuke Akatsuka
4f43eb7f7a Bug 1366989 - Part 2: Modify tests to correspond with changing the animation-timeline. r=pbro
MozReview-Commit-ID: GN5oS5KRfrc

--HG--
extra : rebase_source : 158269f380031b3cdb22d092a5bf6c290f6f3089
2017-09-19 10:29:22 +09:00
Daisuke Akatsuka
7927956f96 Bug 1366989 - Part 1: Avoid to refresh whole panel. r=pbro
Currently the animation inspector re-generates the entire animation timeline
whenever an animation is added, changed, etc.
To avoid this, averts to re-render the component which no needs.

In this implementation, premises the actorID can be used as unique id for each
animations. The mechanism is below.

At initial time, renders all actors  as normally. In this time, holds actorID
and related components to componentsMap.
Next, in case of that needs to update the UI, gets animation actors from server,
and compares actorID of both the actors and componentsMap. If retrieved actorID
exists in componentsMap, updates the view area only without re-rendering.
For example, supposes, has an animation (actid-1) when opens the inspector, and
a new animation (actid-2) was added a little later.
At initial rendering, holds "actid-1” of first animation as key and related
components to componentsMap. Next, when “actid-2” animation is added to document,
can get animation actors that are “actid-1” and “actid-2” from server. Because
“actid-1” is already held in componentsMap, updates “actid-1”’s view area. This
is because TimeScale will be updated. Then "actid-2” render as normally since
componentMap does not have the actorID. After rendered, holds “actid-2” and
related components.

However, even if actorID exists, if keyframes (tracks) and effect timing
(state) differ, re-render that. Also, if iterationCount of effect timing
represents Infinity, do re-rendering. Because the display area expands by the
end of the currently displayed time.

And, if actorID in componentsMap is not in retrieved actors, removes related
components.

MozReview-Commit-ID: GmifRX3GzYd

--HG--
extra : rebase_source : cd9d5c69492f6b4b9ee967fe105eb73c7a43cd7a
2017-09-19 10:26:54 +09:00
Patrick Brosset
2d31297cd5 Bug 1382576 - Switch over from the old-event-emitter to event-emitter in the animation inspector; r=jdescottes
MozReview-Commit-ID: ftItsTkomw

--HG--
extra : rebase_source : eb2facf35130f8b3805fafdb16087cf807471ae7
2017-09-06 16:51:50 +02:00
Daisuke Akatsuka
e64d9dda4a Bug 1396538 - Part 2: Add test for background-repeat. r=pbro
MozReview-Commit-ID: Gv6Pe0k4cCP

--HG--
extra : rebase_source : 9a8d87a4c1ea4865b0749907589a8ecd244696c1
2017-09-04 20:47:47 +09:00
Daisuke Akatsuka
426d14471f Bug 1396538 - Part 1: Use computed value as the value scale. r=pbro
MozReview-Commit-ID: 9ng9hUTga9A

--HG--
extra : rebase_source : 04444ba23f50ea69532efe45d327411956d870d4
2017-09-04 20:47:41 +09:00
Tom Tromey
dffd9ec2a9 Bug 1395262 - use plain console.error in devtools promise catches; r=bgrins
MozReview-Commit-ID: C8IhVPckQJ7

--HG--
extra : rebase_source : bd5f46a0bdff992cc0334250a16557eb710af5de
2017-08-30 12:05:41 -06:00
Gabriel Luong
f161fe5430 Bug 1390727 - Add a consistent style for all the no result messages in the inspector sidepanel. r=bgrins 2017-08-16 10:36:55 -07:00
Gabriel Luong
dfd8ca657b Bug 1390298 - Change the fonts used in the Inspector. r=bgrins 2017-08-15 19:21:49 -07:00
Wes Kocher
5a4357c768 Merge inbound to central, a=merge
MozReview-Commit-ID: GArkKmOFIVH
2017-08-11 13:15:33 -07:00
Andrew Halberstadt
d2109610fb Bug 1385352 - Enable 'mozilla/no-arbitrary-setTimeout' eslint rule on browser-chrome tests, r=standard8
MozReview-Commit-ID: 5lO0uAjHMsw

--HG--
extra : rebase_source : 8607b3964da207a6076c79b6f1d75b40503cdd7d
2017-08-10 14:48:21 -04:00
Phil Ringnalda
0ff5a4285d Backed out changeset 6896f93a2327 (bug 1385352) for not making it to m-c before the next violation of its new linting rule merged to autoland
MozReview-Commit-ID: 3HDE2C3wSU0
2017-08-10 20:21:19 -07:00
Andrew Halberstadt
f625fd5c37 Bug 1385352 - Enable 'mozilla/no-arbitrary-setTimeout' eslint rule on browser-chrome tests, r=standard8
MozReview-Commit-ID: 5lO0uAjHMsw

--HG--
extra : rebase_source : d72a88962ec8d843e7be99e25f710887f01b6e1a
2017-08-10 14:48:21 -04:00
ZER0
ba9681c84a Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8


--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 03:47:30 +02:00
Wes Kocher
db97e61fc7 Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
MozReview-Commit-ID: 1wKVHbOAUdc

--HG--
rename : devtools/shared/old-event-emitter.js => devtools/shared/event-emitter.js
2017-08-10 18:23:14 -07:00
ZER0
93e1efc17d Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8


--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 02:43:47 +02:00
Sebastian Hengst
7ea64bd7aa merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-07-27 18:18:54 +02:00