@@ -271,6 +271,16 @@ describe('Object Comparison Tests', () => {
271271 actual : { dataView : new Uint8Array ( 3 ) } ,
272272 expected : { dataView : new DataView ( new ArrayBuffer ( 3 ) ) } ,
273273 } ,
274+ {
275+ description : 'throws when comparing Float32Array([+0.0]) with Float32Array([-0.0])' ,
276+ actual : new Float32Array ( [ + 0.0 ] ) ,
277+ expected : new Float32Array ( [ - 0.0 ] ) ,
278+ } ,
279+ {
280+ description : 'throws when comparing two different urls' ,
281+ actual : new URL ( 'http://foo' ) ,
282+ expected : new URL ( 'http://bar' ) ,
283+ } ,
274284 {
275285 description : 'throws when comparing SharedArrayBuffers when expected has different elements actual' ,
276286 actual : ( ( ) => {
@@ -728,6 +738,21 @@ describe('Object Comparison Tests', () => {
728738 actual : [ 1 , 2 , 3 ] ,
729739 expected : [ 2 ] ,
730740 } ,
741+ {
742+ description : 'ensures that File extends Blob' ,
743+ actual : Object . getPrototypeOf ( File . prototype ) ,
744+ expected : Blob . prototype
745+ } ,
746+ {
747+ description : 'compares NaN with NaN' ,
748+ actual : NaN ,
749+ expected : NaN ,
750+ } ,
751+ {
752+ description : 'compares two identical urls' ,
753+ actual : new URL ( 'http://foo' ) ,
754+ expected : new URL ( 'http://foo' ) ,
755+ } ,
731756 ] . forEach ( ( { description, actual, expected } ) => {
732757 it ( description , ( ) => {
733758 assert . partialDeepStrictEqual ( actual , expected ) ;
0 commit comments