Bug 875138 - Update devtools tab to be compatible with XBL refactoring changes. r=jwalker

This commit is contained in:
William Chen committed 2013-05-22 16:24:22 -07:00
1 parent 4e90d70444
commit 4da170e6b6
3 files changed
+7 -5

No files matched your search

@@ -43,7 +43,7 @@ function selectAndCheckById(id) {
return toolbox.selectTool(id).then(function() {
let tab = doc.getElementById("toolbox-tab-" + id);
is(tab.selected, true, "The " + id + " tab is selected");
is(tab.hasAttribute("selected"), true, "The " + id + " tab is selected");
});
}
+3 -4
View File
@@ -2,10 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
.devtools-tab > .radio-check,
.devtools-tab > .radio-check-box1,
.devtools-tab > .radio-spacer-box {
display: none;
.devtools-tab {
-moz-binding: url("chrome://global/content/bindings/general.xml#control-item");
-moz-box-align: center;
}
#toolbox-controls > toolbarbutton > .toolbarbutton-text,
+3
View File
@@ -351,6 +351,9 @@ Toolbox.prototype = {
let id = toolDefinition.id;
let radio = this.doc.createElement("radio");
// The radio element is not being used in the conventional way, thus
// the devtools-tab class replaces the radio XBL binding with its base
// binding (the control-item binding).
radio.className = "toolbox-tab devtools-tab";
radio.id = "toolbox-tab-" + id;
radio.setAttribute("toolid", id);