Closed
Bug 1027852
Opened 11 years ago
Closed 11 years ago
AudioNode Inspector should evaluate floats without a leading 0
Categories
(DevTools Graveyard :: Web Audio Editor, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 33
People
(Reporter: jsantell, Assigned: rlustin, Mentored)
References
Details
(Whiteboard: [good first bug])
Attachments
(1 file, 4 obsolete files)
When altering a property on an AudioNode, like a GainNode's "gain", I should be able to enter in `.1` and have that set the gain to `0.1`.
Currently we `JSON.parse` the string entered into the VariablesView, so this fix would be in the `_onEval` method in `browser/devtools/webaudioeditor/webaudioeditor-view.js`
Reporter | ||
Updated•11 years ago
|
Mentor: jsantell
Whiteboard: [good first bug][mentor=jsantell@mozilla.com]
Updated•11 years ago
|
Assignee: nobody → raphael
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8443968 -
Flags: review?(jsantell)
Reporter | ||
Comment 2•11 years ago
|
||
Looks great! Can we add a test for this? Probably best to add a quick float test in this one:
./browser/devtools/webaudioeditor/test/browser_wa_properties-view-edit.js
Note: this test is disabled due to intermittent failures on our test servers, so you will have to uncomment it out in the `browser.ini` in that directory to run it. If you're new to running tests on devtools components, check this out: https://wiki.mozilla.org/DevTools/Hacking#DevTools_Mochitests
Thanks!!
Reporter | ||
Comment 3•11 years ago
|
||
Comment on attachment 8443968 [details] [diff] [review]
AudioNode Inspector should evaluate floats without a leading 0. r=jsantell
Review of attachment 8443968 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, lets just get some tests in there :)
Attachment #8443968 -
Flags: review?(jsantell) → review-
Assignee | ||
Comment 4•11 years ago
|
||
Hi Jordan,
Thanks for the review and the tip. I'll write some tests :)
Assignee | ||
Comment 5•11 years ago
|
||
Assignee | ||
Comment 6•11 years ago
|
||
Assignee | ||
Comment 7•11 years ago
|
||
Write some tests.
Assignee | ||
Updated•11 years ago
|
Attachment #8444043 -
Flags: review?(jsantell)
Assignee | ||
Updated•11 years ago
|
Attachment #8444040 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #8444042 -
Attachment is obsolete: true
Updated•11 years ago
|
Whiteboard: [good first bug][mentor=jsantell@mozilla.com] → [good first bug]
Reporter | ||
Comment 8•11 years ago
|
||
Comment on attachment 8444043 [details] [diff] [review]
AudioNode Inspector should evaluate floats without a leading 0. r=jsantell
Review of attachment 8444043 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good! Tests passing (although still commented out in the browser.ini due to the other intermittent failure, but this will turn on when that does).
Small nit, lets get consistent quotes (double) in the tests -- once that's done, I'll merge this in. Thanks Raphaël!
Attachment #8444043 -
Flags: review?(jsantell) → review+
Assignee | ||
Comment 9•11 years ago
|
||
Attachment #8443968 -
Attachment is obsolete: true
Attachment #8444043 -
Attachment is obsolete: true
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8444587 [details] [diff] [review]
AudioNode Inspector should evaluate floats without a leading 0. r=jsantell
Review of attachment 8444587 [details] [diff] [review]:
-----------------------------------------------------------------
Here is the last nit you asked for.
Attachment #8444587 -
Flags: checkin?(jsantell)
Comment 11•11 years ago
|
||
Please verify that this is green on Try before pushing.
Reporter | ||
Comment 12•11 years ago
|
||
Pushing to try: https://tbpl.mozilla.org/?tree=Try&rev=1c36e65dc5d9
Reporter | ||
Updated•11 years ago
|
Attachment #8444587 -
Flags: checkin?(jsantell)
Assignee | ||
Comment 14•11 years ago
|
||
Do I have to do something to checkin the patch?
Comment 15•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [good first bug] → [good first bug][fixed-in-fx-team]
Reporter | ||
Comment 16•11 years ago
|
||
Raphaël -- the sheriffs will check it in (just like Carsten did above) -- they'll mark the bug as resolved in a day or two if nothing terrible breaks :)
Assignee | ||
Comment 17•11 years ago
|
||
Jordan -- thanks for the explanation, I discovered the process :)
Comment 18•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [good first bug][fixed-in-fx-team] → [good first bug]
Target Milestone: --- → Firefox 33
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•