Permalink
Browse files

Updating the tests for the subdomain apps

  • Loading branch information...
1 parent 2610dcb commit 4f95941749d07916538bbdc0b318c78afe1b7ba4 @etiennesegonzac etiennesegonzac committed Mar 28, 2012
@@ -1,5 +1,5 @@
function generatorTest() {
- yield testApp('../dialer/dialer.html', function(window, document, nextStep) {
+ yield testApp('http://dialer.gaiamobile.org/', function(window, document, nextStep) {
ok(window.document === document, 'window and document are related');
ok(document.readyState === 'complete', 'document fully loaded');
ok(typeof nextStep === 'function', 'nextStep func is okay');
@@ -1,6 +1,6 @@
function generatorTest() {
waitForExplicitFinish();
- yield testApp('../clock/clock.html', testStopwatch);
+ yield testApp('http://clock.gaiamobile.org/', testStopwatch);
finish();
}
@@ -1,6 +1,6 @@
function generatorTest() {
waitForExplicitFinish();
- yield testApp('../clock/clock.html', testTimer);
+ yield testApp('http://clock.gaiamobile.org/', testTimer);
finish();
}
@@ -9,7 +9,7 @@ function generatorTest() {
});
yield navigator.mozContacts.save(testContact).onsuccess = nextStep;
- yield testApp('../dialer/dialer.html', testCallFromContacts);
+ yield testApp('http://dialer.gaiamobile.org/', testCallFromContacts);
yield navigator.mozContacts.remove(testContact).onsuccess = nextStep;
}
@@ -8,7 +8,7 @@ function generatorTest() {
});
yield navigator.mozContacts.save(testContact).onsuccess = nextStep;
- yield testApp('../dialer/dialer.html', testContactIntent);
+ yield testApp('http://dialer.gaiamobile.org/', testContactIntent);
yield navigator.mozContacts.remove(testContact).onsuccess = nextStep;
}
@@ -19,7 +19,7 @@ function testContactIntent(window, document, nextStep) {
hidden: false
}
};
- window.visibilityChanged('../dialer/dialer.html?choice=contact', fakeEvt);
+ window.visibilityChanged('http://dialer.gaiamobile.org/index.html?choice=contact', fakeEvt);
ok(!document.getElementById('contacts-view').hidden,
'Contact view displayed');
@@ -1,6 +1,6 @@
function generatorTest() {
// Launch the dialer app
- yield testApp('../dialer/dialer.html', testContactsEdition);
+ yield testApp('http://dialer.gaiamobile.org/', testContactsEdition);
}
function testContactsEdition(window, document, nextStep) {
@@ -11,7 +11,7 @@ function generatorTest() {
yield navigator.mozContacts.save(testContact).onsuccess = nextStep;
// Launch the dialer app
- yield testApp('../dialer/dialer.html', testContactsSearch);
+ yield testApp('http://dialer.gaiamobile.org/', testContactsSearch);
// Remove the contact
navigator.mozContacts.remove(testContact);
@@ -1,5 +1,5 @@
function generatorTest() {
- yield testApp('../dialer/dialer.html', testDialerHistory);
+ yield testApp('http://dialer.gaiamobile.org/', testDialerHistory);
}
function testDialerHistory(window, document, nextStep) {
@@ -1,6 +1,6 @@
function generatorTest() {
waitForExplicitFinish();
- yield testApp('../dialer/dialer.html', testDialerKeypad);
+ yield testApp('http://dialer.gaiamobile.org/', testDialerKeypad);
finish();
}
@@ -1,6 +1,6 @@
function generatorTest() {
waitForExplicitFinish();
- yield testApp('../dialer/dialer.html', testDialerSanitizing);
+ yield testApp('http://dialer.gaiamobile.org/', testDialerSanitizing);
finish();
}
@@ -1,6 +1,6 @@
function generatorTest() {
waitForExplicitFinish();
- yield testApp('../sms/sms.html', testSMSConversation);
+ yield testApp('http://sms.gaiamobile.org/', testSMSConversation);
finish();
}
@@ -1,6 +1,6 @@
function generatorTest() {
waitForExplicitFinish();
- yield testApp('../sms/sms.html', testSMSNew);
+ yield testApp('http://sms.gaiamobile.org/', testSMSNew);
finish();
}

0 comments on commit 4f95941

Please sign in to comment.