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:
fb3ab9e
)
Add failing spec
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Tue, 19 Jan 2016 18:57:18 +0000
(10:57 -0800)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Tue, 19 Jan 2016 18:57:18 +0000
(10:57 -0800)
spec/api-desktop-capturer-spec.js
patch
|
blob
|
history
diff --git
a/spec/api-desktop-capturer-spec.js
b/spec/api-desktop-capturer-spec.js
index
13c6f9e
..
85f3f19
100644
(file)
--- a/
spec/api-desktop-capturer-spec.js
+++ b/
spec/api-desktop-capturer-spec.js
@@
-11,4
+11,17
@@
describe('desktopCapturer', function() {
done();
});
});
+
+ it('does not throw an error when called twice (regression)', function(done) {
+ var callCount = 0;
+ var callback = function(error, sources) {
+ callCount++;
+ assert.equal(error, null);
+ assert.notEqual(sources.length, 0);
+ if (callCount === 2) done();
+ }
+
+ desktopCapturer.getSources({types: ['window', 'screen']}, callback);
+ desktopCapturer.getSources({types: ['window', 'screen']}, callback);
+ })
});