Skip to content
Browse files

Fix paths for assets. specRunner should work with server and with sta…

…tic file (file://).
  • Loading branch information...
1 parent f3b246e commit b55a4e09cc5772d9d5e28ad2e31e2e513e4dbe0e @demiazz committed Jan 28, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −9 specRunner.html
View
18 specRunner.html
@@ -4,22 +4,22 @@
<head>
<title>Jasmine WebKit Reporter</title>
- <link rel="shortcut icon" type="image/png" href="/vendor/img/favicon.png">
+ <link rel="shortcut icon" type="image/png" href="vendor/img/favicon.png">
<!-- Jasmine CSS -->
- <link rel="stylesheet" type="text/css" href="/vendor/css/jasmine.css">
+ <link rel="stylesheet" type="text/css" href="vendor/css/jasmine.css">
<!-- Jasmine BDD Framework -->
- <script type="text/javascript" src="/vendor/js/jasmine.js"></script>
- <script type="text/javascript" src="/vendor/js/jasmine-html.js"></script>
+ <script type="text/javascript" src="vendor/js/jasmine.js"></script>
+ <script type="text/javascript" src="vendor/js/jasmine-html.js"></script>
<!-- Jasmine Sinon -->
- <script type="text/javascript" src="/vendor/js/sinon.js"></script>
- <script type="text/javascript" src="/vendor/js/jasmine-sinon.js"></script>
+ <script type="text/javascript" src="vendor/js/sinon.js"></script>
+ <script type="text/javascript" src="vendor/js/jasmine-sinon.js"></script>
<!-- Source -->
- <script type="text/javascript" src="/jasmine-wkreporter.js"></script>
+ <script type="text/javascript" src="jasmine-wkreporter.js"></script>
<!-- Specs -->
- <script type="text/javascript" src="/jasmine-wkreporter.spec.js"></script>
+ <script type="text/javascript" src="jasmine-wkreporter.spec.js"></script>
<script type="text/javascript">
(function() {
@@ -36,7 +36,7 @@
var currentWindowOnload = window.onload;
- document.onready = function() {
+ window.onload = function() {
if (currentWindowOnload) {
currentWindowOnload();
}

0 comments on commit b55a4e0

Please sign in to comment.
Something went wrong with that request. Please try again.