This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-17
lines changed Expand file tree Collapse file tree 3 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,9 @@ BinderTest.prototype.testActionOnAHrefThrowsError = function(){
436
436
} ;
437
437
var input = c . node ;
438
438
input . trigger ( 'click' ) ;
439
- assertEquals ( { a :"abc" , b :2 } , fromJson ( input . attr ( 'ng-exception' ) ) ) ;
439
+ var error = fromJson ( input . attr ( 'ng-exception' ) ) ;
440
+ assertEquals ( "abc" , error . a ) ;
441
+ assertEquals ( 2 , error . b ) ;
440
442
assertTrue ( "should have an error class" , input . hasClass ( 'ng-exception' ) ) ;
441
443
442
444
// TODO: I think that exception should never get cleared so this portion of test makes no sense
Original file line number Diff line number Diff line change @@ -47,16 +47,6 @@ describe("markups", function(){
47
47
expect ( sortedHtml ( element ) . replace ( ' selected="true"' , '' ) ) . toEqual ( '<select name="x"><option value="a">a</option></select>' ) ;
48
48
} ) ;
49
49
50
- it ( 'should process all bindings when we have leading space' , function ( ) {
51
- var e = jqLite ( '<a> {{a}}<br/>{{b}}</a>' ) ;
52
- if ( sortedHtml ( e ) . indexOf ( '<a>{{' ) != 0 ) {
53
- // can only run this test if browser respects leading spaces
54
- compile ( e ) ;
55
- var space = msie ? '<span>' + NBSP + '</span>' : ' ' ;
56
- expect ( sortedHtml ( scope . $element ) ) . toEqual ( '<a>' + space + '<span ng-bind="a"></span><br></br><span ng-bind="b"></span></a>' ) ;
57
- }
58
- } ) ;
59
-
60
50
} ) ;
61
51
62
52
Original file line number Diff line number Diff line change 1
1
jstd = jstestdriver ;
2
2
dump = bind ( jstd . console , jstd . console . log ) ;
3
3
4
- var NBSP = ( function ( ) {
5
- var div = document . createElement ( 'div' ) ;
6
- div . innerHtml = ' ' ;
7
- return msie ? div . innerText : div . textContent ;
8
- } ) ( ) ;
9
-
10
4
function nakedExpect ( obj ) {
11
5
return expect ( angular . fromJson ( angular . toJson ( obj ) ) ) ;
12
6
}
You can’t perform that action at this time.
0 commit comments