Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed Safari port number on OSX.

  • Loading branch information...
commit dccfe1316e7761ee5aa096ad221b2e8894cdc591 1 parent 1eea3c6
Toby Ho authored
Showing with 6 additions and 13 deletions.
  1. +0 −12 assets/safari_start.html
  2. +6 −1 lib/browser_launcher.js
12 assets/safari_start.html
View
@@ -1,12 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<title></title>
-</head>
-<body>
-
-<script>
-window.location = 'http://localhost:7357/'
-</script>
-</body>
-</html>
7 lib/browser_launcher.js
View
@@ -140,7 +140,12 @@ function browsersForPlatform(){
{
name: "Safari",
exe: "/Applications/Safari.app/Contents/MacOS/Safari",
- args: [path.dirname(__dirname) + '/assets/safari_start.html'],
+ setup: function(app, done){
+ fs.writeFile(tempDir + '/testem.safari.html', "<script>window.location = 'http://localhost:" + app.config.get('port') + "/'</script>", done)
+ },
+ args: function(app){
+ return [tempDir + '/testem.safari.html']
+ },
supported: browserExeExists
},
{
Please sign in to comment.
Something went wrong with that request. Please try again.