Permalink
Browse files

tests work in standalone and funcunit

  • Loading branch information...
1 parent 6320b14 commit ba495a4c6a9d85c70217d6338bf2024231c9c784 @moschel moschel committed Mar 15, 2012
Showing with 12 additions and 5 deletions.
  1. +5 −2 test/qunit/mouse_test.js
  2. +7 −3 test/qunit/syn_test.js
View
@@ -313,8 +313,11 @@ test("h3 click in popup", 1,function(){
iframe.src = page1
st.g("qunit-test-area").appendChild(iframe);*/
-
- var popup = window.open( "test/qunit/h3.html", "synthing")
+ var path = "test/qunit/h3.html";
+ if(typeof steal !== 'undefined'){
+ path = st.rootJoin("funcunit/syn/test/qunit/h3.html");
+ }
+ var popup = window.open( path, "synthing")
setTimeout(function(){
var el = popup.document.getElementById('strange')
View
@@ -107,11 +107,15 @@ if(!Syn.skipFocusTests){
test("focus on an element then another in another page", function(){
stop();
- var rootJoin = st.rootJoin;
var page1 = "test/qunit/page1.html",
- page2 = "test/qunit/page2.html",
- iframe = document.createElement('iframe'),
+ page2 = "test/qunit/page2.html"
+ if(typeof steal !== 'undefined'){
+ page1 = st.rootJoin("funcunit/syn/test/qunit/page1.html");
+ page2 = st.rootJoin("funcunit/syn/test/qunit/page2.html");
+ }
+
+ var iframe = document.createElement('iframe'),
calls = 0;
st.bind(iframe,"load",function(){

0 comments on commit ba495a4

Please sign in to comment.