-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'X-Requested-With' header to liftVanilla
- Loading branch information
Showing
15 changed files
with
295 additions
and
26 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
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,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Jasmine Spec Runner v2.4.0</title> | ||
|
||
<link rel="shortcut icon" type="image/png" href="target/web/web-modules/main/webjars/lib/jasmine-core/images/jasmine_favicon.png"> | ||
<link rel="stylesheet" href="target/web/web-modules/main/webjars/lib/jasmine-core/lib/jasmine-core/jasmine.css"> | ||
|
||
<script src="target/web/web-modules/main/webjars/lib/jasmine-core/lib/jasmine-core/jasmine.js"></script> | ||
<script src="target/web/web-modules/main/webjars/lib/jasmine-core/lib/jasmine-core/jasmine-html.js"></script> | ||
<script src="target/web/web-modules/main/webjars/lib/jasmine-core/lib/jasmine-core/boot.js"></script> | ||
<script src="target/web/web-modules/main/webjars/lib/jquery/dist/jquery.min.js"></script> | ||
<script src="target/web/web-modules/main/webjars/lib/jasmine-ajax/lib/mock-ajax.js"></script> | ||
|
||
<!-- include source files here... --> | ||
<script src="src/main/resources/toserve/lift.js"></script> | ||
|
||
<!-- include spec files here... --> | ||
<script src="src/test/assets/js/liftJQuery.spec.js"></script> | ||
<script src="src/test/assets/js/liftVanilla.spec.js"></script> | ||
|
||
</head> | ||
|
||
<body> | ||
<p>Run the <code>assets</code> task in <em>lift-webkit</em> to fetch the dependencies.</p> | ||
</body> | ||
</html> |
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,71 @@ | ||
// Karma configuration | ||
|
||
module.exports = function(config) { | ||
config.set({ | ||
|
||
// base path that will be used to resolve all patterns (eg. files, exclude) | ||
basePath: '', | ||
|
||
|
||
// frameworks to use | ||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | ||
frameworks: ['jasmine'], | ||
|
||
|
||
// list of files / patterns to load in the browser | ||
files: [ | ||
'target/web/web-modules/main/webjars/lib/jquery/dist/jquery.min.js', | ||
'target/web/web-modules/main/webjars/lib/jasmine-ajax/lib/mock-ajax.js', | ||
'src/main/resources/toserve/lift.js', | ||
'src/test/assets/js/**/*.js' | ||
], | ||
|
||
|
||
// list of files to exclude | ||
exclude: [ | ||
], | ||
|
||
|
||
// preprocess matching files before serving them to the browser | ||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor | ||
preprocessors: { | ||
}, | ||
|
||
|
||
// test results reporter to use | ||
// possible values: 'dots', 'progress' | ||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter | ||
reporters: ['mocha'], | ||
|
||
|
||
// web server port | ||
port: 9876, | ||
|
||
|
||
// enable / disable colors in the output (reporters and logs) | ||
colors: true, | ||
|
||
|
||
// level of logging | ||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | ||
logLevel: config.LOG_INFO, | ||
|
||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch: false, | ||
|
||
|
||
// start these browsers | ||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher | ||
browsers: ['PhantomJS'], | ||
|
||
|
||
// Continuous Integration mode | ||
// if true, Karma captures browsers, runs the tests and exits | ||
singleRun: true, | ||
|
||
// Concurrency level | ||
// how many browser should be started simultanous | ||
concurrency: Infinity | ||
}) | ||
} |
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 @@ | ||
{ | ||
"name": "lift", | ||
"version": "3.0.0", | ||
"description": "A JavaScript library for use with the Lift web framework", | ||
"scripts": { | ||
"test": "karma start karma.conf.js", | ||
"lint": "jshint src/main/resources/toserve/lift.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/lift/framework.git" | ||
}, | ||
"keywords": [ | ||
"lift" | ||
], | ||
"author": "", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/lift/framework/issues" | ||
}, | ||
"homepage": "https://github.com/lift/framework", | ||
"devDependencies": { | ||
"jasmine-core": "^2.4.0", | ||
"jshint": "^2.8.0", | ||
"karma": "^0.13.15", | ||
"karma-jasmine": "^0.3.6", | ||
"karma-mocha-reporter": "^1.1.3", | ||
"karma-phantomjs-launcher": "^0.2.1", | ||
"phantomjs": "^1.9.19" | ||
} | ||
} |
Oops, something went wrong.