summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-12-23 12:50:15 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-12-23 12:50:15 +0100
commitf88f8fcb7f7451babc8aa20ecc0dad06dd27e1ed (patch)
treecb53495565d3a5757b6efc44c179b6d95b244721
parent367a4eed30e9fa77a2aa5d7924f041e967f8567d (diff)
update jasmine, karma and angular
-rw-r--r--js/package.json12
-rw-r--r--js/tests/unit/controller/ContentControllerSpec.js10
-rw-r--r--js/tests/unit/controller/NavigationControllerSpec.js28
-rw-r--r--js/tests/unit/controller/SettingsControllerSpec.js10
-rw-r--r--js/vendor/angular-animate/.bower.json10
-rw-r--r--js/vendor/angular-animate/angular-animate.js244
-rw-r--r--js/vendor/angular-animate/angular-animate.min.js56
-rw-r--r--js/vendor/angular-animate/angular-animate.min.js.map4
-rw-r--r--js/vendor/angular-animate/bower.json4
-rw-r--r--js/vendor/angular-animate/package.json2
-rw-r--r--js/vendor/angular-mocks/.bower.json10
-rw-r--r--js/vendor/angular-mocks/angular-mocks.js40
-rw-r--r--js/vendor/angular-mocks/bower.json4
-rw-r--r--js/vendor/angular-mocks/package.json2
-rw-r--r--js/vendor/angular-route/.bower.json10
-rw-r--r--js/vendor/angular-route/angular-route.js3
-rw-r--r--js/vendor/angular-route/angular-route.min.js2
-rw-r--r--js/vendor/angular-route/angular-route.min.js.map2
-rw-r--r--js/vendor/angular-route/bower.json4
-rw-r--r--js/vendor/angular-route/package.json2
-rw-r--r--js/vendor/angular-sanitize/.bower.json10
-rw-r--r--js/vendor/angular-sanitize/angular-sanitize.js10
-rw-r--r--js/vendor/angular-sanitize/angular-sanitize.min.js6
-rw-r--r--js/vendor/angular-sanitize/angular-sanitize.min.js.map2
-rw-r--r--js/vendor/angular-sanitize/bower.json4
-rw-r--r--js/vendor/angular-sanitize/package.json2
-rw-r--r--js/vendor/angular/.bower.json8
-rw-r--r--js/vendor/angular/angular.js785
-rw-r--r--js/vendor/angular/angular.min.js490
-rw-r--r--js/vendor/angular/angular.min.js.gzipbin45728 -> 45930 bytes
-rw-r--r--js/vendor/angular/angular.min.js.map4
-rw-r--r--js/vendor/angular/bower.json2
-rw-r--r--js/vendor/angular/package.json2
-rw-r--r--js/vendor/jquery/.bower.json10
-rw-r--r--js/vendor/jquery/bower.json4
-rw-r--r--js/vendor/jquery/dist/jquery.js539
-rw-r--r--js/vendor/jquery/dist/jquery.min.js8
-rw-r--r--js/vendor/jquery/dist/jquery.min.map2
-rw-r--r--js/vendor/jquery/src/ajax.js42
-rw-r--r--js/vendor/jquery/src/ajax/xhr.js5
-rw-r--r--js/vendor/jquery/src/attributes/attr.js2
-rw-r--r--js/vendor/jquery/src/attributes/classes.js8
-rw-r--r--js/vendor/jquery/src/attributes/prop.js4
-rw-r--r--js/vendor/jquery/src/attributes/support.js16
-rw-r--r--js/vendor/jquery/src/attributes/val.js8
-rw-r--r--js/vendor/jquery/src/core.js13
-rw-r--r--js/vendor/jquery/src/core/init.js6
-rw-r--r--js/vendor/jquery/src/core/ready.js2
-rw-r--r--js/vendor/jquery/src/css.js57
-rw-r--r--js/vendor/jquery/src/css/addGetHookIf.js6
-rw-r--r--js/vendor/jquery/src/css/curCSS.js2
-rw-r--r--js/vendor/jquery/src/css/defaultDisplay.js2
-rw-r--r--js/vendor/jquery/src/css/support.js5
-rw-r--r--js/vendor/jquery/src/css/var/getStyles.js9
-rw-r--r--js/vendor/jquery/src/data.js21
-rw-r--r--js/vendor/jquery/src/data/Data.js6
-rw-r--r--js/vendor/jquery/src/deferred.js4
-rw-r--r--js/vendor/jquery/src/dimensions.js2
-rw-r--r--js/vendor/jquery/src/effects.js59
-rw-r--r--js/vendor/jquery/src/effects/Tween.js14
-rw-r--r--js/vendor/jquery/src/event.js10
-rw-r--r--js/vendor/jquery/src/event/ajax.js13
-rw-r--r--js/vendor/jquery/src/exports/global.js4
-rw-r--r--js/vendor/jquery/src/intro.js16
-rw-r--r--js/vendor/jquery/src/jquery.js1
-rw-r--r--js/vendor/jquery/src/manipulation.js20
-rw-r--r--js/vendor/jquery/src/manipulation/support.js11
-rw-r--r--js/vendor/jquery/src/offset.js15
-rw-r--r--js/vendor/jquery/src/queue.js6
-rw-r--r--js/vendor/jquery/src/sizzle/dist/sizzle.js143
-rw-r--r--js/vendor/jquery/src/sizzle/dist/sizzle.min.js6
-rw-r--r--js/vendor/jquery/src/sizzle/dist/sizzle.min.map2
-rw-r--r--js/vendor/jquery/src/traversing.js7
-rw-r--r--js/vendor/jquery/src/wrap.js1
74 files changed, 1544 insertions, 1351 deletions
diff --git a/js/package.json b/js/package.json
index 9627dc96b..a9b593510 100644
--- a/js/package.json
+++ b/js/package.json
@@ -31,18 +31,18 @@
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-uglify": "^0.6.0",
"grunt-contrib-watch": "^0.6.1",
- "grunt-ng-annotate": "^0.6.0",
+ "grunt-ng-annotate": "^0.8.0",
"grunt-php": "^1.1.1",
"grunt-phpunit": "^0.3.6",
"grunt-protractor-runner": "^1.1.4",
- "grunt-protractor-webdriver": "^0.1.9",
+ "grunt-protractor-webdriver": "^0.2.0",
"grunt-wrap": "^0.3.0",
"grunt-karma": "^0.9.0",
- "karma": "^0.12.25",
- "karma-chrome-launcher": "^0.1.5",
- "karma-coverage": "^0.2.6",
+ "karma": "^0.12.28",
+ "karma-chrome-launcher": "^0.1.7",
+ "karma-coverage": "^0.2.7",
"karma-firefox-launcher": "^0.1.3",
- "karma-jasmine": "^0.1.5"
+ "karma-jasmine": "^0.3.2"
},
"dependencies": {}
}
diff --git a/js/tests/unit/controller/ContentControllerSpec.js b/js/tests/unit/controller/ContentControllerSpec.js
index 25314e561..decdceeab 100644
--- a/js/tests/unit/controller/ContentControllerSpec.js
+++ b/js/tests/unit/controller/ContentControllerSpec.js
@@ -108,8 +108,8 @@ describe('ContentController', function () {
expect(ItemResource.markItemRead).toHaveBeenCalledWith(3);
expect(FeedResource.markItemOfFeedRead).toHaveBeenCalledWith(4);
- expect(ItemResource.markItemRead.callCount).toBe(1);
- expect(FeedResource.markItemOfFeedRead.callCount).toBe(1);
+ expect(ItemResource.markItemRead.calls.count()).toBe(1);
+ expect(FeedResource.markItemOfFeedRead.calls.count()).toBe(1);
}));
@@ -302,7 +302,7 @@ describe('ContentController', function () {
Publisher.subscribe(ItemResource).toChannels(['items']);
ItemResource.autoPage = jasmine.createSpy('autoPage')
- .andCallFake(function () {
+ .and.callFake(function () {
return {
success: function (callback) {
callback({
@@ -360,7 +360,7 @@ describe('ContentController', function () {
Publisher.subscribe(ItemResource).toChannels(['items']);
ItemResource.autoPage = jasmine.createSpy('autoPage')
- .andCallFake(function () {
+ .and.callFake(function () {
return {
success: function (callback) {
callback({
@@ -412,7 +412,7 @@ describe('ContentController', function () {
Publisher.subscribe(ItemResource).toChannels(['items']);
ItemResource.autoPage = jasmine.createSpy('autoPage')
- .andCallFake(function () {
+ .and.callFake(function () {
return {
success: function (callback) {
callback({
diff --git a/js/tests/unit/controller/NavigationControllerSpec.js b/js/tests/unit/controller/NavigationControllerSpec.js
index 72b9fe736..994414307 100644
--- a/js/tests/unit/controller/NavigationControllerSpec.js
+++ b/js/tests/unit/controller/NavigationControllerSpec.js
@@ -70,7 +70,7 @@ describe('NavigationController', function () {
controller.markFolderRead(3);
expect(FeedResource.markFolderRead).toHaveBeenCalledWith(3);
- expect(ItemResource.markFeedRead.callCount).toBe(2);
+ expect(ItemResource.markFeedRead.calls.count()).toBe(2);
}));
@@ -317,7 +317,7 @@ describe('NavigationController', function () {
it('should create a feed with a folderId', inject(function ($controller) {
var FeedResource = {
- create: jasmine.createSpy('create').andCallFake(
+ create: jasmine.createSpy('create').and.callFake(
function (url, folderId) {
return {
then: function (callback) {
@@ -378,7 +378,7 @@ describe('NavigationController', function () {
it('should create a feed with a foldername', inject(function ($controller) {
var FeedResource = {
- create: jasmine.createSpy('create').andCallFake(
+ create: jasmine.createSpy('create').and.callFake(
function (url, folderId) {
return {
then: function (callback) {
@@ -398,7 +398,7 @@ describe('NavigationController', function () {
};
var FolderResource = {
- create: jasmine.createSpy('create').andCallFake(function (folder) {
+ create: jasmine.createSpy('create').and.callFake(function (folder) {
return {
then: function (callback) {
callback({
@@ -410,7 +410,7 @@ describe('NavigationController', function () {
}
};
}),
- get: jasmine.createSpy('get').andCallFake(function (name) {
+ get: jasmine.createSpy('get').and.callFake(function (name) {
return {
name: name,
id: 19
@@ -459,7 +459,7 @@ describe('NavigationController', function () {
it('should create a folder', inject(function ($controller) {
var FolderResource = {
- create: jasmine.createSpy('create').andCallFake(
+ create: jasmine.createSpy('create').and.callFake(
function (folder) {
return {
then: function (callback) {
@@ -633,7 +633,7 @@ describe('NavigationController', function () {
it('should rename a folder', inject(function ($controller, FolderResource) {
FolderResource.rename = jasmine.createSpy('rename')
- .andCallFake(function () {
+ .and.callFake(function () {
return {
then: function (success) {
success();
@@ -668,7 +668,7 @@ describe('NavigationController', function () {
it('should handle rename folder error', inject(function ($controller,
FolderResource) {
FolderResource.rename = jasmine.createSpy('rename')
- .andCallFake(function () {
+ .and.callFake(function () {
return {
then: function (success, error) {
error('no');
@@ -728,7 +728,7 @@ describe('NavigationController', function () {
$controller, FeedResource, $q, $rootScope) {
var deferred = $q.defer();
FeedResource.reversiblyDelete = jasmine.createSpy('reversiblyDelete')
- .andReturn(deferred.promise);
+ .and.returnValue(deferred.promise);
var route = {
reload: jasmine.createSpy('reload')
};
@@ -759,7 +759,7 @@ describe('NavigationController', function () {
$controller, FeedResource, $q, $rootScope) {
var deferred = $q.defer();
FeedResource.undoDelete = jasmine.createSpy('undoDelete')
- .andReturn(deferred.promise);
+ .and.returnValue(deferred.promise);
var route = {
reload: jasmine.createSpy('reload')
};
@@ -810,10 +810,10 @@ describe('NavigationController', function () {
var deferredFolder = $q.defer();