projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bbbeb3
)
Add more hasRepresentation asserts
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Mon, 6 Mar 2017 21:26:55 +0000
(13:26 -0800)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Tue, 7 Mar 2017 20:27:55 +0000
(12:27 -0800)
spec/api-native-image-spec.js
patch
|
blob
|
history
diff --git
a/spec/api-native-image-spec.js
b/spec/api-native-image-spec.js
index
9aa0ced
..
922717f
100644
(file)
--- a/
spec/api-native-image-spec.js
+++ b/
spec/api-native-image-spec.js
@@
-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()))
})
})