]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Enable tests on window size.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 11 Aug 2014 13:00:04 +0000 (21:00 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 11 Aug 2014 13:00:04 +0000 (21:00 +0800)
After upgraded to Chrome36, those tests have become stable.

spec/api-browser-window-spec.coffee

index d13a9fa78223b0634f41f9ad62a51f1c57382a1c..e295f0a54494aa987041225fb1138c8563ba70a2 100644 (file)
@@ -70,9 +70,6 @@ describe 'browser-window module', ->
 
   describe 'BrowserWindow.setSize(width, height)', ->
     it 'sets the window size', ->
-      # No way to reliably set size when window has not been shown on Linux.
-      return if process.platform is 'linux'
-
       size = [400, 400]
       w.setSize size[0], size[1]
       after = w.getSize()
@@ -80,9 +77,6 @@ describe 'browser-window module', ->
       assert.equal after[1], size[1]
 
     it 'can set the window larger than screen', ->
-      # No way to reliably set size when window has not been shown on Linux.
-      return if process.platform is 'linux'
-
       size = require('screen').getPrimaryDisplay().size
       size.width += 100
       size.height += 100
@@ -93,9 +87,6 @@ describe 'browser-window module', ->
 
   describe 'BrowserWindow.setContentSize(width, height)', ->
     it 'sets the content size', ->
-      # No way to reliably set size when window has not been shown on Linux.
-      return if process.platform is 'linux'
-
       size = [400, 400]
       w.setContentSize size[0], size[1]
       after = w.getContentSize()