mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-02 09:00:34 +08:00
committed by
Pawel Kozlowski
parent
61b2515c0d
commit
ffe5115355
@@ -676,7 +676,7 @@ describe('$http', function() {
|
||||
}).respond('');
|
||||
|
||||
$http({url: '/url', method: 'GET', headers: {
|
||||
'Custom': 'header',
|
||||
'Custom': 'header'
|
||||
}});
|
||||
|
||||
$httpBackend.flush();
|
||||
|
||||
@@ -14,7 +14,7 @@ describe('$interval', function() {
|
||||
nextTime:(now + delay),
|
||||
delay: delay,
|
||||
fn: fn,
|
||||
id: nextRepeatId,
|
||||
id: nextRepeatId
|
||||
});
|
||||
repeatFns.sort(function(a,b){ return a.nextTime - b.nextTime;});
|
||||
|
||||
|
||||
@@ -436,7 +436,7 @@ describe('SCE', function() {
|
||||
it('should support multiple items in both lists', runTest(
|
||||
{
|
||||
whiteList: [/^http:\/\/example.com\/1$/, /^http:\/\/example.com\/2$/, /^http:\/\/example.com\/3$/, 'self'],
|
||||
blackList: [/^http:\/\/example.com\/3$/, /.*\/open_redirect/],
|
||||
blackList: [/^http:\/\/example.com\/3$/, /.*\/open_redirect/]
|
||||
}, function($sce) {
|
||||
expect($sce.getTrustedResourceUrl('same_domain')).toEqual('same_domain');
|
||||
expect($sce.getTrustedResourceUrl('http://example.com/1')).toEqual('http://example.com/1');
|
||||
|
||||
Reference in New Issue
Block a user