Skip to content

Commit

Permalink
jshint fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
brunano21 committed Dec 13, 2016
1 parent 7f4cadc commit 138edf1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
33 changes: 17 additions & 16 deletions tests/functional/ComboPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ define([
.end()
.findByCssSelector(".d-linear-layout .d-combobox-list[d-shown='false']") // list not visible
.then(function (list) {
assert.isNotNull(list, "list should be invisible at this stage.")
assert.isNotNull(list, "list should be invisible at this stage.");
})
.end()
.findByCssSelector(".d-linear-layout .d-combobox-input[d-hidden='false']") // inputNode
Expand Down Expand Up @@ -711,7 +711,7 @@ define([
.end()
.findByCssSelector(".d-linear-layout .d-combobox-list[d-shown='false']") // list not visible
.then(function (list) {
assert.isNotNull(list, "list should be invisible at this stage.")
assert.isNotNull(list, "list should be invisible at this stage.");
})
.end()
.pressKeys("p")
Expand All @@ -738,7 +738,7 @@ define([
.end()
.findByCssSelector(".d-linear-layout .d-combobox-list[d-shown='true']") // list visible
.then(function (list) {
assert.isNotNull(list, "list should be visible at this stage.")
assert.isNotNull(list, "list should be visible at this stage.");
})
.end()
.findByCssSelector(".d-linear-layout .d-combobox-input[d-hidden='false']") // inputNode
Expand Down Expand Up @@ -766,7 +766,7 @@ define([
.end()
.findByCssSelector(".d-linear-layout .d-combobox-list[d-shown='false']") // list not visible
.then(function (list) {
assert.isNotNull(list, "list should be visible at this stage.")
assert.isNotNull(list, "list should be visible at this stage.");
})
.end()
.findByCssSelector(".d-linear-layout .d-combobox-input[d-hidden='false']") // inputNode
Expand Down Expand Up @@ -794,10 +794,11 @@ define([
})
.isDisplayed() // check if popup is still visible.
.then(function (isVisible) {
assert.isTrue(isVisible, "popup must be visible at this stage.")
assert.isTrue(isVisible, "popup must be visible at this stage.");
})
.end()
.end();
};

var checkAutoCompleteFilteringWithZeroFilterChars = function (remote, comboId) {
var executeExpr = "return getComboState(\"" + comboId + "\");";
return loadFile(remote, "./ComboPopup.html")
Expand Down Expand Up @@ -869,7 +870,7 @@ define([
.end()
.findByCssSelector(".d-linear-layout .d-combobox-list[d-shown='true']") // list visible
.then(function (list) {
assert.isNotNull(list, "list should be invisible at this stage.")
assert.isNotNull(list, "list should be invisible at this stage.");
})
.end()
.findByCssSelector(".d-linear-layout .d-combobox-input[d-hidden='false']") // inputNode
Expand Down Expand Up @@ -897,7 +898,7 @@ define([
.end()
.findByCssSelector(".d-linear-layout .d-combobox-list[d-shown='true']") // list visible
.then(function (list) {
assert.isNotNull(list, "list should be invisible at this stage.")
assert.isNotNull(list, "list should be visible at this stage.");
})
.end()
.findByCssSelector(".d-linear-layout .d-combobox-input[d-hidden='false']") // inputNode
Expand Down Expand Up @@ -927,7 +928,7 @@ define([
.end()
.findByCssSelector(".d-linear-layout .d-combobox-list[d-shown='false']") // list not visible
.then(function (list) {
assert.isNotNull(list, "list should be visible at this stage.")
assert.isNotNull(list, "list should be not visible at this stage.");
})
.end()
.findByCssSelector(".d-linear-layout .d-combobox-input[d-hidden='false']") // inputNode
Expand Down Expand Up @@ -956,7 +957,7 @@ define([
.end()
.findByCssSelector(".d-linear-layout .d-combobox-list[d-shown='true']") // list visible
.then(function (list) {
assert.isNotNull(list, "list should be visible at this stage.")
assert.isNotNull(list, "list should be visible at this stage.");
})
.end()
.findByCssSelector(".d-linear-layout .d-combobox-input[d-hidden='false']") // inputNode
Expand Down Expand Up @@ -985,14 +986,14 @@ define([
.end()
.findByCssSelector(".d-linear-layout .d-combobox-list[d-shown='false']") // list not visible
.then(function (list) {
assert.isNotNull(list, "list should be visible at this stage.")
assert.isNotNull(list, "list should be not visible at this stage.");
})
.end()
.isDisplayed() // check if popup is still visible.
.then(function (isVisible) {
assert.isTrue(isVisible, "popup must be visible at this stage.")
assert.isTrue(isVisible, "popup must be visible at this stage.");
})
.end()
.end();
};

registerSuite({
Expand Down Expand Up @@ -1088,7 +1089,7 @@ define([
return checkSingleSelection(remote, "combo2", true);
},

"multi selection selection (combo3)": function () {
"multi selection (combo3)": function () {
var remote = this.remote;

if (remote.environmentType.browserName === "internet explorer") {
Expand All @@ -1103,7 +1104,7 @@ define([
return checkMultiSelection(remote, "combo3");
},

"multi selection selection (combo3)": function () {
"multi selection cancel button (combo3)": function () {
var remote = this.remote;

if (remote.environmentType.browserName === "internet explorer") {
Expand Down Expand Up @@ -1183,7 +1184,7 @@ define([
},

"autocomplete filtering - minFilterChars = 0 (combo5)": function () {
var remote = this.remote;
var remote = this.remote;

if (remote.environmentType.browserName === "internet explorer") {
// https://github.com/theintern/leadfoot/issues/17
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/Combobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ define([
.then(function (navigatedDescendant) {
assert(/^China/.test(navigatedDescendant),
"navigatedDescendant after two ARROW_DOWN: " + navigatedDescendant);
})
});
};

var checkNavigatedDescendantWithPreSelection = function (remote, comboId) {
Expand Down Expand Up @@ -999,7 +999,7 @@ define([
// note: on opening, the widget does focus on the navigated descendant
assert(/^UK/.test(navigatedDescendant),
"navigatedDescendant after opening the popup: " + navigatedDescendant);
})
});
};

var checkPopupPosition = function (remote, comboId, position) {
Expand Down

0 comments on commit 138edf1

Please sign in to comment.