Skip to content

Commit

Permalink
Move phantom runner test code to phantom test environment to integrat…
Browse files Browse the repository at this point in the history
…e against actual environment. That would have discovered the inline issue.

Conflicts:
	Gruntfile.js
	test/SpecRunner.html
	test/run-phantomjs-tests.js
  • Loading branch information
Christoph Burgmer committed Mar 6, 2014
1 parent a4269d3 commit 2cbb14e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ module.exports = function (grunt) {
src: [
'bower_components/rasterizeHTML.js/dist/rasterizeHTML.allinone.js',
'bower_components/js-imagediff/imagediff.js',
'bower_components/jssha/src/sha256.js',
'src/utils.js',
'src/phantomjsrenderer.js',
'src/browserrenderer.js',
'src/domstorage.js',
'src/<%= pkg.name %>.js',
'src/basichtmlreporter.js',
'src/terminalreporter.js',
'src/signoffreporter.js'
],
options: {
specs: ['test/specsShared/*', 'test/specs/*'],
Expand Down
9 changes: 9 additions & 0 deletions test/run-phantomjs-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ function loadJasmine() {
function loadCode() {
phantom.injectJs("./test/helpers.js");

phantom.injectJs("./src/phantomjsbind.js");
phantom.injectJs("./bower_components/rasterizeHTML.js/dist/rasterizeHTML.allinone.js");
phantom.injectJs("./bower_components/jssha/src/sha256.js");
phantom.injectJs("./bower_components/js-imagediff/imagediff.js");
phantom.injectJs("./src/utils.js");
phantom.injectJs("./src/phantomjsrenderer.js");
phantom.injectJs("./src/terminalreporter.js");
phantom.injectJs("./src/htmlfilereporter.js");
phantom.injectJs("./src/signoffreporter.js");
phantom.injectJs("./src/filestorage.js");
phantom.injectJs("./src/csscritic.js");
}
Expand All @@ -29,6 +34,10 @@ function loadTests() {
phantom.injectJs("./specsPhantom/FileStorageSpec.js");
phantom.injectJs("./specsPhantom/PhantomJSRendererSpec.js");
phantom.injectJs("./specsPhantom/HtmlFileReporterSpec.js");
phantom.injectJs("./specsPhantom/TerminalReporterSpec.js");
phantom.injectJs("./specsPhantom/SignOffReporterUtilSpec.js");
phantom.injectJs("./specsPhantom/SignOffReporterSpec.js");

}

function startWebserver() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2cbb14e

Please sign in to comment.