Closed
Bug 1240771
Opened 10 years ago
Closed 10 years ago
browser_rules_colorUnit.js and browser_rules_authored_color.js ends with pending requests
Categories
(DevTools :: Inspector: Rules, defect)
DevTools
Inspector: Rules
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1240813
People
(Reporter: ochameau, Unassigned)
Details
Attachments
(3 files)
|
2.09 KB,
patch
|
Details | Diff | Splinter Review | |
|
4.05 KB,
patch
|
pbro
:
review+
|
Details | Diff | Splinter Review |
|
1.52 KB,
patch
|
pbro
:
review+
|
Details | Diff | Splinter Review |
http://archive.mozilla.org/pub/firefox/try-builds/apoirot@mozilla.com-5cc724ec7dd1ec23efd7e637ff1680eb1e52f9e4/try-linux64/try_ubuntu64_vm_test-mochitest-e10s-devtools-chrome-3-bm53-tests1-linux64-build94.txt.gz
06:08:33 INFO - 3930 INFO TEST-START | devtools/client/inspector/rules/test/browser_rules_authored_color.js
06:08:41 INFO - console.error:
06:08:41 INFO - Message: Error: Connection closed, pending request to server1.conn15.child1/domstylerule41, type setRuleText failed
06:08:41 INFO - Request stack:
| Reporter | ||
Comment 1•10 years ago
|
||
| Reporter | ||
Comment 2•10 years ago
|
||
| Reporter | ||
Comment 3•10 years ago
|
||
| Reporter | ||
Comment 4•10 years ago
|
||
Comment on attachment 8709466 [details] [diff] [review]
browser_rules_colorUnit.js fix
Review of attachment 8709466 [details] [diff] [review]:
-----------------------------------------------------------------
We have to wait twice for ruleview-changed as setRuleText is called from these callsites:
Rule.prototype.previewPropertyValue@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/inspector/rules/models/rule.js:385:10
TextPropertyEditor.prototype._previewValue@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/inspector/rules/rules.js:2756:5
TextPropertyEditor.prototype._onSwatchPreview@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/inspector/rules/rules.js:2681:5
SwatchBasedEditorTooltip.prototype.preview@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/shared/widgets/Tooltip.js:1083:7
SwatchColorPickerTooltip.prototype<._selectColor@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/shared/widgets/Tooltip.js:1176:7
SwatchColorPickerTooltip.prototype<._onSpectrumColorChange@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/shared/widgets/Tooltip.js:1166:5
Rule.prototype.previewPropertyValue@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/inspector/rules/models/rule.js:385:10
TextPropertyEditor.prototype._onValueDone@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/inspector/rules/rules.js:2636:7
TextPropertyEditor.prototype._onSwatchCommit@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/inspector/rules/rules.js:2673:5
SwatchBasedEditorTooltip.prototype.commit@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/shared/widgets/Tooltip.js:1106:7
SwatchBasedEditorTooltip.prototype.show/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/shared/widgets/Tooltip.js:996:11
Rule.prototype._applyPropertiesAuthored@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/inspector/rules/models/rule.js:268:10
Rule.prototype.applyProperties/resultPromise<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/inspector/rules/models/rule.js:308:20
Attachment #8709466 -
Flags: review?(pbrosset)
| Reporter | ||
Comment 5•10 years ago
|
||
Comment on attachment 8709469 [details] [diff] [review]
browser_rules_authored_color.js fix
Review of attachment 8709469 [details] [diff] [review]:
-----------------------------------------------------------------
Similar patch for another test
Attachment #8709469 -
Flags: review?(pbrosset)
| Reporter | ||
Comment 6•10 years ago
|
||
Comment on attachment 8709468 [details] [diff] [review]
browser_styleinspector_csslogic-content-stylesheets.js fix
Review of attachment 8709468 [details] [diff] [review]:
-----------------------------------------------------------------
This one is less obvious, I had to introduce a test specific event.
Attachment #8709468 -
Flags: review?(pbrosset)
Comment 7•10 years ago
|
||
Comment on attachment 8709466 [details] [diff] [review]
browser_rules_colorUnit.js fix
Review of attachment 8709466 [details] [diff] [review]:
-----------------------------------------------------------------
You mentioned in bug 1240813 that I could take these patches and fold them in.
Let me know if you would like me to do this?
::: devtools/client/inspector/rules/test/browser_rules_colorUnit.js
@@ +32,5 @@
> yield basicTest(view, name, result);
> +
> + let target = TargetFactory.forTab(gBrowser.selectedTab);
> + yield gDevTools.closeToolbox(target);
> + gBrowser.removeCurrentTab();
This is already done in a registerCleanupFunction in head.js
@@ +55,5 @@
>
> let spectrum = yield cPicker.spectrum;
> let onHidden = cPicker.tooltip.once("hidden");
> + // Validating the color change ends up updating the rule view twice
> + let onRuleViewChanged = new Promise(done => {
You can use waitForNEvents from head.js
Attachment #8709466 -
Flags: review?(pbrosset)
Updated•10 years ago
|
Attachment #8709469 -
Flags: review?(pbrosset) → review+
Updated•10 years ago
|
Attachment #8709468 -
Flags: review?(pbrosset) → review+
Comment 8•10 years ago
|
||
As discussed on IRC, I'll be merging these fixes into bug 1240813 and landing them there.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•