Fix some pesky style issues
Gjslint reports these as errors, which is very annoying. This change modifies the style only. Change-Id: I81164534cef6fdfc034f45e347f283916037d974
This commit is contained in:
@@ -469,18 +469,19 @@ limitations under the License.
|
||||
|
||||
});
|
||||
|
||||
test('document scrolling calls function to set scroll height', function(done) {
|
||||
var scrollStub = sinon.stub(element, '_handleScroll',
|
||||
function() {
|
||||
assert.isTrue(scrollStub.called);
|
||||
document.getElementsByTagName('body')[0].style.height = originalHeight+'px';
|
||||
scrollStub.restore();
|
||||
done();
|
||||
});
|
||||
test('document scrolling calls function to set scroll height',
|
||||
function(done) {
|
||||
var scrollStub = sinon.stub(element, '_handleScroll', function() {
|
||||
assert.isTrue(scrollStub.called);
|
||||
document.getElementsByTagName('body')[0].style.height =
|
||||
originalHeight + 'px';
|
||||
scrollStub.restore();
|
||||
done();
|
||||
});
|
||||
|
||||
var originalHeight = document.body.scrollHeight;
|
||||
document.getElementsByTagName('body')[0].style.height = '10000px';
|
||||
window.scroll(0,100);
|
||||
window.scroll(0, 100);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -85,7 +85,7 @@ limitations under the License.
|
||||
assert.equal(element.message, expected);
|
||||
});
|
||||
|
||||
test('revert a revert', function () {
|
||||
test('revert a revert', function() {
|
||||
assert.isNotOk(element.message);
|
||||
element.populateRevertMessage(
|
||||
'Revert "one line commit"\n\nChange-Id: abcdefg\n');
|
||||
|
||||
Reference in New Issue
Block a user