Closed
Bug 982140
Opened 10 years ago
Closed 10 years ago
Add automated test for removing properties from the manifest
Categories
(DevTools Graveyard :: WebIDE, defect)
DevTools Graveyard
WebIDE
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 31
People
(Reporter: mihaelav, Assigned: mihaelav)
References
Details
Attachments
(1 file, 1 obsolete file)
2.40 KB,
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
Steps: 1. Open App Manager 2. Load an app 3. Remove a property from the app's manifest Expected result: The property is correctly removed from the manifest
Did you click "Save" after removing the property?
Flags: needinfo?(mihaela.velimiroviciu)
Assignee | ||
Comment 2•10 years ago
|
||
This is a tracking bug for adding a new automated test (removing a property) for the manifest editor.
Flags: needinfo?(mihaela.velimiroviciu)
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8390559 -
Flags: review?(jryans)
Comment on attachment 8390559 [details] [diff] [review] remove property test Review of attachment 8390559 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the new test! Looks like just a few small tweaks to make. Be sure to run it on try as well. ::: browser/devtools/app-manager/test/browser_manifest_editor.js @@ +171,5 @@ > + let parentElem = gManifestWindow.document > + .querySelector("[id ^= '" + parent + "']"); > + ok(parentElem, "Found parent element"); > + > + if(parentElem == null) The block seems unnecessary, since you are testing value above. If it's null, the test fails anyway, which is what we want. @@ +178,5 @@ > + let keyExists = key in gManifestEditor.manifest[parent]; > + ok(keyExists, > + "The manifest contains the key under the expected parent"); > + > + if(!keyExists) Same here, remove this block. @@ +186,5 @@ > + let removePropertyButton = newElem.querySelector(".variables-view-delete"); > + ok(removePropertyButton, "The remove property button was found"); > + removePropertyButton.click(); > + > + waitForUpdate(); This should be "yield waitForUpdate()" as in the other functions above.
Attachment #8390559 -
Flags: review?(jryans) → review+
Assignee | ||
Comment 5•10 years ago
|
||
remote: https://tbpl.mozilla.org/?tree=Try&rev=b4e9a9752ec2
Attachment #8390559 -
Attachment is obsolete: true
Attachment #8391105 -
Flags: review?(jryans)
Comment on attachment 8391105 [details] [diff] [review] updated based on review Review of attachment 8391105 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks!
Attachment #8391105 -
Flags: review?(jryans) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 8•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c133f3472fc0
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 31
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•4 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•