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)

x86
macOS
defect
Not set
normal

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`
Mentor: jsantell
Whiteboard: [good first bug][mentor=jsantell@mozilla.com]
Assignee: nobody → raphael
Attachment #8443968 - Flags: review?(jsantell)
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!!
Blocks: 1022248
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-
Hi Jordan, Thanks for the review and the tip. I'll write some tests :)
Attachment #8444043 - Flags: review?(jsantell)
Attachment #8444040 - Attachment is obsolete: true
Attachment #8444042 - Attachment is obsolete: true
Whiteboard: [good first bug][mentor=jsantell@mozilla.com] → [good first bug]
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+
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)
Please verify that this is green on Try before pushing.
Attachment #8444587 - Flags: checkin?(jsantell)
Try test looking good
Keywords: checkin-needed
Do I have to do something to checkin the patch?
Keywords: checkin-needed
Whiteboard: [good first bug] → [good first bug][fixed-in-fx-team]
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 :)
Jordan -- thanks for the explanation, I discovered the process :)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [good first bug][fixed-in-fx-team] → [good first bug]
Target Milestone: --- → Firefox 33
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: