Skip to content

Commit

Permalink
完善saucelab测试配置,引入saucelab badge。
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-xiao-jian committed Mar 5, 2015
1 parent 589bf41 commit 67b3ab5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ angularLocalStorage
![Package Dependency](https://david-dm.org/bornkiller/angularLocalStorage.svg?style=flat)
![Package DevDependency](https://david-dm.org/bornkiller/angularLocalStorage/dev-status.svg?style=flat)

[![Sauce Test Status](https://saucelabs.com/browser-matrix/huangjian.svg)](https://saucelabs.com/u/huangjian)

The simplest localStorage module you will ever use. Allowing you to set, get, and *bind* variables.

##Install
Expand Down
16 changes: 14 additions & 2 deletions saucelab.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,29 @@ module.exports = function(config) {
version: '35',
platform: 'Windows 8.1'
},
'SL-Safari': {
base: 'SauceLabs',
browserName: 'safari',
version: '8',
platform: 'OS X Yosemite'
},
'SL_IE_11': {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8.1',
platform: 'Windows 7',
version: '11'
},
'SL_IE_10': {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8',
platform: 'Windows 7',
version: '10'
},
'SL_IE_9': {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '9'
}
};
config.set({
Expand Down
2 changes: 1 addition & 1 deletion src/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ angular.module('storage.update', ['storage.operate', 'storage.utils'])
*/
destiny.$verse = function(key) {
var storageValue = storageOperate.get(key);
if (storageValue === true || storageValue === false || toString.call(storageValue) === '[object Boolean]') {
if (storageValue === true || storageValue === false || Object.prototype.toString.call(storageValue) === '[object Boolean]') {
storageOperate.set(key, !storageValue);
}
};
Expand Down

0 comments on commit 67b3ab5

Please sign in to comment.