-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
106 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0"?> | ||
<testsuites> | ||
<testsuite name="Firefox 23.0 (Mac)" package="" timestamp="2013-09-27T06:49:40" id="0" hostname="Escudo.local" tests="2" errors="0" failures="0" time="0.008"> | ||
<properties> | ||
<property name="browser.fullName" value="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:23.0) Gecko/20100101 Firefox/23.0"/> | ||
</properties> | ||
<testcase name="version check" time="0.003" classname="Firefox 23.0 (Mac).Husky"/> | ||
<testcase name="application start" time="0.005" classname="Firefox 23.0 (Mac).Husky"/> | ||
<system-out><![CDATA[Firefox 23.0 (Mac) LOG: [ 'aura_2:', 'Starting Aura' ] | ||
,Firefox 23.0 (Mac) LOG: [ 'aura_2:', 'Starting Aura' ] | ||
]]></system-out> | ||
<system-err/> | ||
</testsuite> | ||
</testsuites> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
define(['husky', 'jquery'], function(husky, $) { | ||
|
||
'use strict'; | ||
|
||
var app; | ||
|
||
describe('Husky', function() { | ||
|
||
it('version check', function() { | ||
app = husky({ debug: { enable: true }}); | ||
|
||
expect(app.version).toBe('0.1.0'); | ||
|
||
app.stop(); | ||
}); | ||
|
||
it('start application', function() { | ||
|
||
app = husky({ debug: { enable: true }}); | ||
|
||
app.start().then(function() { | ||
app.logger.log('Aura started...'); | ||
}); | ||
}); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
define(['husky'], function(husky) { | ||
|
||
'use strict'; | ||
|
||
|
||
}); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
var tests = []; | ||
for (var file in window.__karma__.files) { | ||
if (window.__karma__.files.hasOwnProperty(file)) { | ||
if (/-spec\.js$/.test(file)) { | ||
tests.push(file); | ||
} | ||
} | ||
} | ||
|
||
require.config({ | ||
// Karma serves files from '/base' | ||
baseUrl: '/base', | ||
|
||
paths: { | ||
'jquery': 'bower_components/jquery/jquery', | ||
'sinon': 'node_modules/sinon/pkg/sinon.js', | ||
'husky': 'lib/husky' | ||
}, | ||
|
||
shim: { | ||
'underscore': { | ||
exports: '_' | ||
} | ||
}, | ||
|
||
// ask Require.js to load these files (all our tests) | ||
deps: tests, | ||
|
||
// start test run, once Require.js is done | ||
callback: window.__karma__.start | ||
}); |