File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ beforeEach(function() {
32
32
} ;
33
33
}
34
34
35
+ function DOMTester ( a , b ) {
36
+ if ( a && b && a . nodeType > 0 && b . nodeType > 0 ) {
37
+ return a === b ;
38
+ }
39
+ }
40
+
35
41
function isNgElementHidden ( element ) {
36
42
// we need to check element.getAttribute for SVG nodes
37
43
var hidden = true ;
@@ -111,12 +117,19 @@ beforeEach(function() {
111
117
} ;
112
118
}
113
119
} ;
120
+ } ,
114
121
115
- function DOMTester ( a , b ) {
116
- if ( a && b && a . nodeType > 0 && b . nodeType > 0 ) {
117
- return a === b ;
122
+ toEqualOneOf : function ( util ) {
123
+ return {
124
+ compare : function ( actual ) {
125
+ var expectedArgs = Array . prototype . slice . call ( arguments , 1 ) ;
126
+ return {
127
+ pass : expectedArgs . some ( function ( expected ) {
128
+ return util . equals ( actual , expected , [ DOMTester ] ) ;
129
+ } )
130
+ } ;
118
131
}
119
- }
132
+ } ;
120
133
} ,
121
134
122
135
toEqualData : function ( ) {
You can’t perform that action at this time.
0 commit comments