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:
71f94c7
)
Add failing spec for window size after restore
author
Samuel Attard
<samuel.r.attard@gmail.com>
Tue, 22 Nov 2016 04:49:47 +0000
(15:49 +1100)
committer
Samuel Attard
<samuel.r.attard@gmail.com>
Tue, 22 Nov 2016 04:49:47 +0000
(15:49 +1100)
spec/api-browser-window-spec.js
patch
|
blob
|
history
diff --git
a/spec/api-browser-window-spec.js
b/spec/api-browser-window-spec.js
index
a0425d7
..
83a9ed8
100644
(file)
--- a/
spec/api-browser-window-spec.js
+++ b/
spec/api-browser-window-spec.js
@@
-1754,6
+1754,25
@@
describe('browser-window module', function () {
})
})
})
+
+ describe.only('minWidth', function () {
+ beforeEach(function () {
+ if (w != null) w.destroy()
+ w = new BrowserWindow({
+ minWidth: 800,
+ width: 800
+ })
+ })
+
+ it('should persist when restoring the window', function (done) {
+ w.minimize();
+ setTimeout(() => {
+ w.restore();
+ assert.equal(w.getSize()[0], 800);
+ done();
+ }, 200);
+ })
+ })
})
const assertBoundsEqual = (actual, expect) => {