Bug 976114 - stand up basic functional test for a fetching a URL, r=Standard8

This commit is contained in:
Dan Mosedale
2014-08-05 07:21:28 -07:00
parent 192ddc79cf
commit 35c32e9b90
9 changed files with 279 additions and 17 deletions

View File

@@ -209,11 +209,15 @@ loop.panel = (function(_, mozL10n) {
// readOnly attr will suppress a warning regarding this issue
// from the react lib.
var cx = React.addons.classSet;
var inputCSSClass = {
"pending": this.state.pending,
"callUrl": !this.state.pending
};
return (
PanelLayout({summary: __("share_link_header_text")},
React.DOM.div({className: "invite"},
React.DOM.input({type: "url", value: this.state.callUrl, readOnly: "true",
className: cx({'pending': this.state.pending})})
className: cx(inputCSSClass)})
)
)
);

View File

@@ -209,11 +209,15 @@ loop.panel = (function(_, mozL10n) {
// readOnly attr will suppress a warning regarding this issue
// from the react lib.
var cx = React.addons.classSet;
var inputCSSClass = {
"pending": this.state.pending,
"callUrl": !this.state.pending
};
return (
<PanelLayout summary={__("share_link_header_text")}>
<div className="invite">
<input type="url" value={this.state.callUrl} readOnly="true"
className={cx({'pending': this.state.pending})} />
className={cx(inputCSSClass)} />
</div>
</PanelLayout>
);