Add more hasRepresentation asserts
authorKevin Sawicki <kevinsawicki@gmail.com>
Mon, 6 Mar 2017 21:26:55 +0000 (13:26 -0800)
committerKevin Sawicki <kevinsawicki@gmail.com>
Tue, 7 Mar 2017 20:27:55 +0000 (12:27 -0800)
spec/api-native-image-spec.js

index 9aa0ced..922717f 100644 (file)
@@ -95,9 +95,11 @@ describe('nativeImage module', () => {
       })
       assert.deepEqual(imageB.getSize(), {width: 269, height: 95})
       assert.equal(imageB.hasRepresentation(1.0), false)
+      assert.equal(imageB.hasRepresentation(2.0), true)
 
       const imageC = nativeImage.createFromDataURL(imageB.toDataURL())
       assert.deepEqual(imageC.getSize(), {width: 538, height: 190})
+      assert.equal(imageC.hasRepresentation(1.0), false)
       assert(imageB.toBitmap().equals(imageC.toBitmap()))
     })
   })