Permalink
Browse files

Fixed Safari port number on OSX.

  • Loading branch information...
1 parent 1eea3c6 commit dccfe1316e7761ee5aa096ad221b2e8894cdc591 @airportyh airportyh committed Apr 27, 2012
Showing with 6 additions and 13 deletions.
  1. +0 −12 assets/safari_start.html
  2. +6 −1 lib/browser_launcher.js
View
@@ -1,12 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<title></title>
-</head>
-<body>
-
-<script>
-window.location = 'http://localhost:7357/'
-</script>
-</body>
-</html>
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
},
{

0 comments on commit dccfe13

Please sign in to comment.