mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
committed by
Tobias Bosch
parent
de2ecb8a96
commit
9335378602
@@ -163,7 +163,7 @@ describe('injector', function() {
|
||||
function $f_n0 /*
|
||||
*/(
|
||||
$a, // x, <-- looks like an arg but it is a comment
|
||||
b_ , /* z, <-- looks like an arg but it is a
|
||||
b_, /* z, <-- looks like an arg but it is a
|
||||
multi-line comment
|
||||
function (a, b) {}
|
||||
*/
|
||||
|
||||
@@ -109,7 +109,7 @@ describe('SCE', function() {
|
||||
}));
|
||||
|
||||
it('should NOT wrap unknown contexts', inject(function($sce) {
|
||||
expect(function() { $sce.trustAs('unknown1' , '123'); }).toThrowMinErr(
|
||||
expect(function() { $sce.trustAs('unknown1', '123'); }).toThrowMinErr(
|
||||
'$sce', 'icontext', 'Attempted to trust a value in invalid context. Context: unknown1; Value: 123');
|
||||
}));
|
||||
|
||||
|
||||
@@ -222,6 +222,6 @@ var swipeTests = function(description, restrictBrowsers, startEvent, moveEvent,
|
||||
});
|
||||
}
|
||||
|
||||
swipeTests('touch', true /* restrictBrowers */, 'touchstart', 'touchmove', 'touchend');
|
||||
swipeTests('mouse', false /* restrictBrowers */, 'mousedown', 'mousemove', 'mouseup');
|
||||
swipeTests('touch', /* restrictBrowers */ true, 'touchstart', 'touchmove', 'touchend');
|
||||
swipeTests('mouse', /* restrictBrowers */ false, 'mousedown', 'mousemove', 'mouseup');
|
||||
|
||||
|
||||
@@ -387,6 +387,6 @@ var swipeTests = function(description, restrictBrowsers, startEvent, moveEvent,
|
||||
});
|
||||
}
|
||||
|
||||
swipeTests('touch', true /* restrictBrowers */, 'touchstart', 'touchmove', 'touchend');
|
||||
swipeTests('mouse', false /* restrictBrowers */, 'mousedown', 'mousemove', 'mouseup');
|
||||
swipeTests('touch', /* restrictBrowers */ true, 'touchstart', 'touchmove', 'touchend');
|
||||
swipeTests('mouse', /* restrictBrowers */ false, 'mousedown', 'mousemove', 'mouseup');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user