@@ -70,7 +70,8 @@ testIframeWithCallback(
7070 "optSelected" : true ,
7171 "pixelMarginRight" : true ,
7272 "pixelPosition" : true ,
73- "radioValue" : true
73+ "radioValue" : true ,
74+ "reliableMarginLeft" : true
7475 } ;
7576 } else if ( / ( m s i e 1 0 \. 0 | t r i d e n t \/ 7 \. 0 ) / i. test ( userAgent ) ) {
7677 expected = {
@@ -86,7 +87,8 @@ testIframeWithCallback(
8687 "optSelected" : false ,
8788 "pixelMarginRight" : true ,
8889 "pixelPosition" : true ,
89- "radioValue" : false
90+ "radioValue" : false ,
91+ "reliableMarginLeft" : true
9092 } ;
9193 } else if ( / m s i e 9 \. 0 / i. test ( userAgent ) ) {
9294 expected = {
@@ -102,7 +104,8 @@ testIframeWithCallback(
102104 "optSelected" : false ,
103105 "pixelMarginRight" : true ,
104106 "pixelPosition" : true ,
105- "radioValue" : false
107+ "radioValue" : false ,
108+ "reliableMarginLeft" : true
106109 } ;
107110 } else if ( / c h r o m e / i. test ( userAgent ) ) {
108111
@@ -121,7 +124,8 @@ testIframeWithCallback(
121124 "optSelected" : true ,
122125 "pixelMarginRight" : true ,
123126 "pixelPosition" : true ,
124- "radioValue" : true
127+ "radioValue" : true ,
128+ "reliableMarginLeft" : true
125129 } ;
126130 } else if ( / 8 \. 0 ( \. \d + | ) s a f a r i / i. test ( userAgent ) ) {
127131 expected = {
@@ -137,7 +141,8 @@ testIframeWithCallback(
137141 "optSelected" : true ,
138142 "pixelMarginRight" : true ,
139143 "pixelPosition" : false ,
140- "radioValue" : true
144+ "radioValue" : true ,
145+ "reliableMarginLeft" : true
141146 } ;
142147 } else if ( / 7 \. 0 ( \. \d + | ) s a f a r i / i. test ( userAgent ) ) {
143148 expected = {
@@ -153,7 +158,8 @@ testIframeWithCallback(
153158 "optSelected" : true ,
154159 "pixelMarginRight" : true ,
155160 "pixelPosition" : false ,
156- "radioValue" : true
161+ "radioValue" : true ,
162+ "reliableMarginLeft" : true
157163 } ;
158164 } else if ( / f i r e f o x / i. test ( userAgent ) ) {
159165 expected = {
@@ -169,7 +175,8 @@ testIframeWithCallback(
169175 "optSelected" : true ,
170176 "pixelMarginRight" : true ,
171177 "pixelPosition" : true ,
172- "radioValue" : true
178+ "radioValue" : true ,
179+ "reliableMarginLeft" : false
173180 } ;
174181 } else if ( / i p h o n e o s 8 / i. test ( userAgent ) ) {
175182 expected = {
@@ -185,7 +192,8 @@ testIframeWithCallback(
185192 "optSelected" : true ,
186193 "pixelMarginRight" : true ,
187194 "pixelPosition" : false ,
188- "radioValue" : true
195+ "radioValue" : true ,
196+ "reliableMarginLeft" : true
189197 } ;
190198 } else if ( / i p h o n e o s ( 6 | 7 ) / i. test ( userAgent ) ) {
191199 expected = {
@@ -201,7 +209,8 @@ testIframeWithCallback(
201209 "optSelected" : true ,
202210 "pixelMarginRight" : true ,
203211 "pixelPosition" : false ,
204- "radioValue" : true
212+ "radioValue" : true ,
213+ "reliableMarginLeft" : true
205214 } ;
206215 } else if ( / a n d r o i d 4 \. [ 0 - 3 ] / i. test ( userAgent ) ) {
207216 expected = {
@@ -217,33 +226,35 @@ testIframeWithCallback(
217226 "optSelected" : true ,
218227 "pixelMarginRight" : false ,
219228 "pixelPosition" : false ,
220- "radioValue" : true
229+ "radioValue" : true ,
230+ "reliableMarginLeft" : false
221231 } ;
222232 }
223233
224- if ( expected ) {
225- QUnit . test ( "Verify that the support tests resolve as expected per browser" , function ( assert ) {
226- var i , prop ,
227- j = 0 ;
234+ QUnit . test ( "Verify that support tests resolve as expected per browser" , function ( assert ) {
235+ if ( ! expected ) {
236+ assert . expect ( 1 ) ;
237+ assert . ok ( false , "Known client: " + userAgent ) ;
238+ }
228239
229- for ( prop in computedSupport ) {
230- j ++ ;
231- }
240+ var i , prop ,
241+ j = 0 ;
232242
233- assert . expect ( j ) ;
243+ for ( prop in computedSupport ) {
244+ j ++ ;
245+ }
234246
235- for ( i in expected ) {
247+ assert . expect ( j ) ;
236248
237- // TODO check for all modules containing support properties
238- if ( jQuery . ajax || i !== "ajax" && i !== "cors" ) {
239- assert . equal ( computedSupport [ i ] , expected [ i ] ,
240- "jQuery.support['" + i + "']: " + computedSupport [ i ] +
241- ", expected['" + i + "']: " + expected [ i ] ) ;
242- } else {
243- assert . ok ( true , "no ajax; skipping jQuery.support[' " + i + " ']" ) ;
244- }
249+ for ( i in expected ) {
250+ if ( jQuery . ajax || i !== "ajax" && i !== "cors" ) {
251+ assert . equal ( computedSupport [ i ] , expected [ i ] ,
252+ "jQuery.support['" + i + "']: " + computedSupport [ i ] +
253+ ", expected['" + i + "']: " + expected [ i ] ) ;
254+ } else {
255+ assert . ok ( true , "no ajax; skipping jQuery.support['" + i + "']" ) ;
245256 }
246- } ) ;
247- }
257+ }
258+ } ) ;
248259
249260} ) ( ) ;
0 commit comments