-
Notifications
You must be signed in to change notification settings - Fork 83
Crubin/remove request promise #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
e5a631d
added tests for event_dispatcher
5af35d5
cleanup
2d51a8a
added test in ./tests.js to check that optlyinstance activates w/ pro…
a5d7658
event_dispatcher tests w/o require XML statement
4b66d95
added fake xml to tests.js
0da1930
cleanup
1cd47d1
cleanup
bafa9c1
tests moved to karma
dff7fcc
added sauce addon to .travis.yml file
0447fb0
fake xhr no longer needed in tests.js
37e2dd3
cleanup
6e21535
cleanup after npm run lint
578fc24
switch to karma for testing, bump node-sdk version to 1.3.1
caitlinrubin-optimizely c2abcf0
fixes from last commit
caitlinrubin-optimizely 7c74459
changed version to 1.4.1 in package.json
caitlinrubin-optimizely 34699a2
changed javascript_client_version to 1.4.1
caitlinrubin-optimizely 377481d
cleaned up package.json devDependencies
caitlinrubin-optimizely bb0f154
added karma-webpack, took out es6
caitlinrubin-optimizely ffc6f69
cross browser testing w/ browserstack set up for iphone5, chrome, ope…
caitlinrubin-optimizely 2da34bd
fixed changes needed since thurs pull, added ie, edge and safari
caitlinrubin-optimizely af5bc1b
removed karma.conf from gitignore, added browserstack credentials to …
caitlinrubin-optimizely a97a9fb
took addons out of .travis
caitlinrubin-optimizely 4521a37
added grunt-cli to package.json, changed tests to include fake xhr again
caitlinrubin-optimizely 3978669
trying to trigger travis build w new package.json
caitlinrubin-optimizely d6d51b1
added grunt-cli to .travis
caitlinrubin-optimizely 9f103da
Merge branch 'master' into crubin/removeRequestPromise
caitlinrubin-optimizely 139227b
removed 0.10 testing
caitlinrubin-optimizely b461c35
fixed year, added node v6 to travis file
caitlinrubin-optimizely 94c2554
put browserstack tests into karma.bs.conf.js
caitlinrubin-optimizely 24b1c8b
changed .travis to npm run
caitlinrubin-optimizely 7c2df7f
changed single run to true and autowatch to false for karma.bs
caitlinrubin-optimizely File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
language: node_js | ||
node_js: | ||
- "5" | ||
- "0.10" | ||
- "6" | ||
- "node" | ||
branches: | ||
only: | ||
- master | ||
before_script: | ||
- npm install grunt-cli -g | ||
install: "npm install" | ||
script: | ||
- "npm test" | ||
- "npm run test-travis" | ||
after_success: | ||
- npm run coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = function (grunt) { | ||
grunt.initConfig({ | ||
karma: { | ||
unit: { | ||
configFile: 'karma.bs.conf.js', | ||
singleRun: true, | ||
reporters: 'progress', | ||
runnerPort: 9998 | ||
} | ||
} | ||
}); | ||
|
||
require('load-grunt-tasks')(grunt); | ||
|
||
grunt.registerTask('default', ['karma']); | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
// Karma configuration | ||
// Generated on Wed May 24 2017 14:10:20 GMT-0700 (PDT) | ||
|
||
module.exports = function(config) { | ||
config.set({ | ||
|
||
// base path that will be used to resolve all patterns (eg. files, exclude) | ||
basePath: '', | ||
|
||
//plugins | ||
plugins: ['karma-mocha', 'karma-webpack', 'karma-browserstack-launcher'], | ||
|
||
//browserStack setup | ||
browserStack: { | ||
username: 'echo $BROWSER_STACK_USERNAME', | ||
accessKey: 'echo $BROWSER_STACK_ACCESS_KEY' | ||
}, | ||
|
||
// to avoid DISCONNECTED messages when connecting to BrowserStack | ||
browserDisconnectTimeout : 10000, // default 2000 | ||
browserDisconnectTolerance : 1, // default 0 | ||
browserNoActivityTimeout : 4*60*1000, //default 10000 | ||
captureTimeout : 4*60*1000, //default 60000 | ||
|
||
// define browsers | ||
customLaunchers: { | ||
bs_chrome_mac: { | ||
base: 'BrowserStack', | ||
browser: 'chrome', | ||
browser_version: '21.0', | ||
os: 'OS X', | ||
os_version: 'Mountain Lion' | ||
}, | ||
bs_edge: { | ||
base: 'BrowserStack', | ||
os: 'Windows', | ||
os_version: '10', | ||
browser: 'edge', | ||
device: null, | ||
browser_version: "15.0" | ||
}, | ||
bs_firefox_mac: { | ||
base: 'BrowserStack', | ||
browser: 'firefox', | ||
browser_version: '21.0', | ||
os: 'OS X', | ||
os_version: 'Mountain Lion' | ||
}, | ||
bs_ie: { | ||
base: 'BrowserStack', | ||
os: "Windows", | ||
os_version: "7", | ||
browser: "ie", | ||
device: null, | ||
browser_version: "10.0" | ||
}, | ||
bs_iphone6: { | ||
base: 'BrowserStack', | ||
device: 'iPhone 6', | ||
os: 'ios', | ||
os_version: '8.3' | ||
}, | ||
bs_opera_mac: { | ||
base: 'BrowserStack', | ||
browser: 'opera', | ||
browser_version: '37', | ||
os: 'OS X', | ||
os_version: 'Mountain Lion' | ||
}, | ||
bs_safari: { | ||
base: 'BrowserStack', | ||
os: "OS X", | ||
os_version: "Mountain Lion", | ||
browser: "safari", | ||
device: null, | ||
browser_version: "6.2" | ||
} | ||
}, | ||
|
||
browsers: ['bs_chrome_mac', 'bs_edge', 'bs_firefox_mac', 'bs_ie', 'bs_iphone6', 'bs_opera_mac', 'bs_safari'], | ||
|
||
// frameworks to use | ||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | ||
frameworks: ['mocha'], | ||
|
||
|
||
// list of files / patterns to load in the browser | ||
files: [ | ||
{pattern: './tests.js', watched: false}, | ||
{pattern: './lib/**/*tests.js', watched: false} | ||
], | ||
|
||
|
||
// list of files to exclude | ||
exclude: [ | ||
], | ||
|
||
|
||
// preprocess matching files before serving them to the browser | ||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor | ||
preprocessors: { | ||
'./tests.js': ['webpack'], | ||
'./lib/**/*tests.js': ['webpack'] | ||
}, | ||
|
||
|
||
// test results reporter to use | ||
// possible values: 'dots', 'progress' | ||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter | ||
reporters: ['progress'], | ||
|
||
|
||
// web server port | ||
port: 9876, | ||
|
||
|
||
// enable / disable colors in the output (reporters and logs) | ||
colors: true, | ||
|
||
|
||
// level of logging | ||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | ||
logLevel: config.LOG_INFO, | ||
|
||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch: false, | ||
|
||
// Continuous Integration mode | ||
// if true, Karma captures browsers, runs the tests and exits | ||
singleRun: true, | ||
|
||
// Concurrency level | ||
// how many browser should be started simultaneous | ||
concurrency: Infinity | ||
}) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
// Karma configuration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For some reason this file is still showing up |
||
// Generated on Thu Jun 01 2017 10:12:37 GMT-0700 (PDT) | ||
|
||
module.exports = function(config) { | ||
config.set({ | ||
|
||
// base path that will be used to resolve all patterns (eg. files, exclude) | ||
basePath: '', | ||
|
||
|
||
// frameworks to use | ||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | ||
frameworks: ['mocha', 'chai'], | ||
|
||
|
||
// list of files / patterns to load in the browser | ||
files: [ | ||
'./tests.js', | ||
'./lib/**/*tests.js' | ||
], | ||
|
||
|
||
// list of files to exclude | ||
exclude: [ | ||
], | ||
|
||
|
||
// preprocess matching files before serving them to the browser | ||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor | ||
preprocessors: { | ||
}, | ||
|
||
|
||
// test results reporter to use | ||
// possible values: 'dots', 'progress' | ||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter | ||
reporters: ['progress'], | ||
|
||
|
||
// web server port | ||
port: 9876, | ||
|
||
|
||
// enable / disable colors in the output (reporters and logs) | ||
colors: true, | ||
|
||
|
||
// level of logging | ||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | ||
logLevel: config.LOG_INFO, | ||
|
||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch: false, | ||
|
||
|
||
// start these browsers | ||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher | ||
browsers: ['Chrome'], | ||
|
||
|
||
// Continuous Integration mode | ||
// if true, Karma captures browsers, runs the tests and exits | ||
singleRun: true, | ||
|
||
// Concurrency level | ||
// how many browser should be started simultaneous | ||
concurrency: Infinity, | ||
|
||
preprocessors: { | ||
// add webpack as preprocessor | ||
'./tests.js': ['webpack'], | ||
'./lib/**/*tests.js': ['webpack'] | ||
}, | ||
|
||
plugins: [ | ||
require("karma-webpack"), | ||
'karma-mocha', | ||
'karma-chai', | ||
'karma-chrome-launcher' | ||
] | ||
}) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we configure it to run on chrome by default, instead of Phantom
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have it run on
chrome
by default instead of Phantom