Skip to content

Commit c20754d

Browse files
committed
Fix sauce labs tests
1 parent 19ba06d commit c20754d

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

Gruntfile.coffee

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,8 @@ module.exports = (grunt) ->
7575
options:
7676
urls: [
7777
# "http://localhost:9999/test/index.html",
78-
"http://localhost:9999/test/index-jquery-ui-1-10.html"
78+
"http://localhost:9999/test/test-jquery-1.9-ui-1.10.html"
7979
]
80-
81-
# username: process.env.SAUCE_USERNAME,
82-
# key: process.env.SAUCE_ACCESS_KEY,
8380
build: process.env.TRAVIS_JOB_ID
8481
throttled: 8
8582
browsers: [
@@ -88,21 +85,32 @@ module.exports = (grunt) ->
8885
{ browserName: "firefox", platform: "Linux" }
8986
{ browserName: "internet explorer", version: "6", platform: "Windows XP" }
9087
{ browserName: "internet explorer", version: "7", platform: "Windows XP" }
91-
# { browserName: "internet explorer", version: "8", platform: "Windows 7" }
92-
# { browserName: "internet explorer", version: "9", platform: "Windows 7" }
93-
# { browserName: "internet explorer", version: "10", platform: "Windows 8" }
9488
{ browserName: "internet explorer", version: "11", platform: "Windows 8.1" }
9589
{ browserName: "microsoftedge", platform: "Windows 10" }
96-
# { browserName: "safari", version: "6", platform: "OS X 10.8" }
97-
# { browserName: "safari", version: "7", platform: "OS X 10.9" }
98-
# { browserName: "safari", version: "8", platform: "OS X 10.10" }
9990
{ browserName: "safari", version: "9", platform: "OS X 10.11" }
10091
]
10192
testname: "jquery.ui-contextmenu qunit tests (jQuery UI 10)"
93+
ui_12:
94+
options:
95+
urls: [
96+
"http://localhost:9999/test/test-jquery-1.3-ui-1.12.html"
97+
]
98+
build: process.env.TRAVIS_JOB_ID
99+
throttled: 8
100+
browsers: [
101+
{ browserName: "chrome", platform: "Windows 8.1" }
102+
{ browserName: "firefox", platform: "Windows 8.1" }
103+
{ browserName: "firefox", platform: "Linux" }
104+
{ browserName: "internet explorer", version: "11", platform: "Windows 8.1" }
105+
{ browserName: "microsoftedge", platform: "Windows 10" }
106+
{ browserName: "safari", version: "9", platform: "OS X 10.11" }
107+
]
108+
testname: "jquery.ui-contextmenu qunit tests (jQuery UI 12)"
102109
ui: # UI Menu 11+ dropped support for IE7
103110
options:
104111
urls: [
105-
"http://localhost:9999/test/index.html",
112+
"http://localhost:9999/test/test-jquery-1.11-ui-1.11.html"
113+
# "http://localhost:9999/test/index.html",
106114
# "http://localhost:9999/test/index-jquery-ui-1-10.html"
107115
]
108116

@@ -182,7 +190,7 @@ module.exports = (grunt) ->
182190
grunt.registerTask "server", ["connect:demo"]
183191
grunt.registerTask "dev", ["connect:dev", "watch:dev"]
184192
grunt.registerTask "test", ["jshint", "jscs", "qunit"]
185-
grunt.registerTask "sauce", ["connect:sauce", "saucelabs-qunit:ui", "saucelabs-qunit:ui_10"]
193+
grunt.registerTask "sauce", ["connect:sauce", "saucelabs-qunit:ui","saucelabs-qunit:ui_10", "saucelabs-qunit:ui_12"]
186194
if parseInt(process.env.TRAVIS_PULL_REQUEST, 10) > 0
187195
# saucelab keys do not work on forks
188196
# http://support.saucelabs.com/entries/25614798

test/tests.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ function TestHelpers() {
3434
return findEntry(menu, indexOrCommand);
3535
} else {
3636
// jQuery UI 1.12+ introduced `<div>` wrappers
37-
// console.log("findEntryInner", menu, indexOrCommand, findEntry(menu, indexOrCommand).find( ">div:first" ));
3837
return findEntry(menu, indexOrCommand).find( ">div:first" );
3938
// return findEntry(menu, indexOrCommand).children( ".ui-menu-item-wrapper" );
4039
}

0 commit comments

Comments
 (0)