From 5174e11bcf91976f05543a741b58abdef8acfc7d Mon Sep 17 00:00:00 2001 From: Tomster Date: Wed, 22 Oct 2014 14:33:12 +0100 Subject: [PATCH] Initial Commit from Ember CLI v0.1.2 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....,,........,.. . . .,..........., ,,,,,,,,,,,,,,,:...,,.,,,,,,,,,,,,,,,,,,,,,.,,.,,......... .~.::::. .........., ,,,,,,,,,,,,. .. .. .. ..,... ,+7ZOOOZ7=, . .,..... ~.=:::::: .........., ,,,,,,,,,, .====IIIIISZ. .. 7ZSIIIIIIIIIIIIIII7ZO... .::..+:::::::= .........., ,,,,,,,,, .=~:~~:~==IIIIII7ZIIIIIIIIIIIIIIIIIIIIIIISZ:....+::::::::, .........., ,,,,,,,,, :::~~~~~~~==77ZIIIIIIIIIIIIIIIIIIIIIIIIIII7O..=~:::::::~............, ,,,,,,,,,..~:::~~~~~~~=ZIIIII77777777777IIIIIIIIIIIIIIIZ==::::::::. :.........., ,,,,,,,,,,. ::::~~~~~:=I7777777777777777777777IIIIIIIIIIS=:::::::. ............, ,,,,,,,,,,. .::,:~~~:::SO8DD8OSII7777777777777777IIIIIIIIZ:::::: ............., ,,,,,,,,,,,, .~M8ZD888OOOOOOOOOOO8DMM7I77I7Z8NMMMMNDZIIIIIZ:::+. .............., ,,,,,,,,,,,,=. ZM888DD,::,,,,,:SN88O88DDD88OOO88888888OO8MM~=.S, .............., ,,,,,,,,,,,,,~ N8D: :88NMMM888O,,,...,:,=NDD8~:88M..,............, ,,,,,,,,,,,,,,, .M8D, MS ,8DZS7SM8S. .,ND8DNM..............., ,,,,,,,,,,,,,,,. ,DD OMN .O8M777S88M =D ?DD~ ... ............ ,,,,,,,,,,,,,,,,. M8~. .M. ~8M77777SM8. DMO .ND= .. ............. ,,,,,,,,,,,,,,,, .~M8: =8D877777SMDN. M, DM= .................. ,,,,,,,,,,,,,,, :.~M8NO?=:=?ZM88DMS7===I77N8M. .MM7S .................. ,,,,,,,,,,,,,, :...=7MNDDDDDNMMNSS777?777SZND888NDS+==O8M7IIZ.................. ,,,,,,,,,,,,, :.....,,,:~~=SSSS77777777777SS7NMMNDDDDDNM7IIIIS................. ,,,,,,,,,,,,..~.......,,,,,,,=777777777777777777SZMMOS777IIIIIS ................ ,,,,,,,,,,,, ~..........:~~:,,,:?7777777SSS8MMMN88DZ777777IIIII+.~+?I777777II?+= ,,,,,,,,,,,.:..............?N8DNNN++=~~::,,NN8888D=,,......IIIIO.SZZZZZZZZZZZZZZ ,,,,,,,,,,. :................N8888S...,....M88888O,,,........IIZ.~77IIIIIIII7777 ,,,,,,,,,, :...........,.....+8888N....,...NN888M,,,.........,IS.:II77IIIIIIIIII ,,,,,,,,,, ~.................,M88D+~...~..===~+M,,,...........IO.=++?I7777IIIIII ,,,,,,,,,,.~.................,,DM=====::::::::::,,............I7 =====+?I777IIII .......... ,.................,:M===:::::::::::=,,............~7 .==++====+?I77II ..........,.~.................,,=:::::::::,. ,,,.............IS .. .===+====?I77 ,,,,,,,,,,, ~.......................,,,. ..,. ............:Z. .+. ======?I ,,,,,,,,,,,, .~........................ .S7777 ............:. .~:,. =..======= .............,.~,...................., .777S77S ..........~. . .::=+::. ======= ,,,,,,,,,,,,,,=. .~....................777 .777.........,:Z .:::::::~....~===== .................:..::............... 77+ 77S......~:777ZZ .=::::::::, :~~=== ,,,,,,,,,,,,,,,,,, .ZZ7I::............S77..S77? ~:,,~+7777Z7Z7I7+~::~+ ~~::~= ,,,,,,,,,,,,,,,,, .ZZ7777~,,,:~~~::: 77I ~777 ,,,,,,,=777IIIII77O. . ~~~~~~:: ,,,,,,,,,,,,,,,,. ,ZZII7=,,,,,,,,,,. =77 .777. .,,,,,,...:IIIIII7Z :~~~~~~~~~~~ ........,.. .... ., . 7~.. .,,. ..,. 777.777= ....... . .III+ . .~. ~~~~~~~~ ....... . . . ,. . . . .. .S77777?. .... ..7S7 , ... :~~~~~~ ...... .S777777. +77+ 7777 777S .777777777? .S777777 77?.S777 .~~~~~~ ..... .7777.+777 .S77. 7777+.7777I 7777777777I .S77S.?77+ I77+S7777 .~~~~~~ .... 777S 77I 777 77777 77777: ,777~. .7777. 777S. 77: .777+7777? .~.. :~ ,. 777 .S77. ?77SS7777SS77777 I77S ?777. 777 .S77. .77777 777 .:. : 7S==7777777= .S77777 77777 77S. .S77, 777I ?7777777S. I77777.777SS777+ . :77777777S,. .:77777 =7777= 77S. .777. .777..7777777?. .I77777. ,777777. .~ ..7777+... S7777777 7777S. 77S. S777. .S7777777777S .. S777777+ . ..: . ..~~ ,,,. .S7777777777777S. S777, 777777777777777777S. 77777777777777S..~~,. .:~~~~~ :::::..~777777I..S77. 77S .S777S .?77777S?.. .. S77777S ?77 :~~~~~~~~~~~~ ..... ..... . . ... ... .. . ..==::. ... . . ..~~~~~~~~~~~~~ .........,.,:.....,:.....=.....,,....,.:.... ...:+~::::,,::::::,:~~~~~~~~~~~~~~~ --- .bowerrc | 4 + .editorconfig | 33 +++++++++ .ember-cli | 9 +++ .gitignore | 17 +++++ .travis.yml | 16 ++++ Brocfile.js | 20 +++++ README.md | 25 +++++++ addon/.gitkeep | 0 app/.gitkeep | 0 bower.json | 17 +++++ config/environment.js | 5 ++ index.js | 5 ++ package.json | 39 ++++++++++ testem.json | 11 +++ tests/.jshintrc | 74 +++++++++++++++++++ tests/dummy/.jshintrc | 32 ++++++++ tests/dummy/app/app.js | 16 ++++ tests/dummy/app/components/.gitkeep | 0 tests/dummy/app/controllers/.gitkeep | 0 tests/dummy/app/helpers/.gitkeep | 0 tests/dummy/app/index.html | 21 ++++++ tests/dummy/app/models/.gitkeep | 0 tests/dummy/app/router.js | 11 +++ tests/dummy/app/routes/.gitkeep | 0 tests/dummy/app/styles/.gitkeep | 0 tests/dummy/app/styles/app.css | 3 + tests/dummy/app/templates/.gitkeep | 0 tests/dummy/app/templates/application.hbs | 3 + tests/dummy/app/templates/components/.gitkeep | 0 tests/dummy/app/views/.gitkeep | 0 tests/dummy/config/environment.js | 47 ++++++++++++ tests/dummy/public/.gitkeep | 0 tests/dummy/public/crossdomain.xml | 15 ++++ tests/dummy/public/robots.txt | 3 + tests/helpers/resolver.js | 11 +++ tests/helpers/start-app.js | 25 +++++++ tests/index.html | 45 +++++++++++ tests/test-helper.js | 12 +++ tests/unit/.gitkeep | 0 vendor/.gitkeep | 0 40 files changed, 519 insertions(+) create mode 100644 .bowerrc create mode 100644 .editorconfig create mode 100644 .ember-cli create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 Brocfile.js create mode 100644 README.md create mode 100644 addon/.gitkeep create mode 100644 app/.gitkeep create mode 100644 bower.json create mode 100644 config/environment.js create mode 100644 index.js create mode 100644 package.json create mode 100644 testem.json create mode 100644 tests/.jshintrc create mode 100644 tests/dummy/.jshintrc create mode 100644 tests/dummy/app/app.js create mode 100644 tests/dummy/app/components/.gitkeep create mode 100644 tests/dummy/app/controllers/.gitkeep create mode 100644 tests/dummy/app/helpers/.gitkeep create mode 100644 tests/dummy/app/index.html create mode 100644 tests/dummy/app/models/.gitkeep create mode 100644 tests/dummy/app/router.js create mode 100644 tests/dummy/app/routes/.gitkeep create mode 100644 tests/dummy/app/styles/.gitkeep create mode 100644 tests/dummy/app/styles/app.css create mode 100644 tests/dummy/app/templates/.gitkeep create mode 100644 tests/dummy/app/templates/application.hbs create mode 100644 tests/dummy/app/templates/components/.gitkeep create mode 100644 tests/dummy/app/views/.gitkeep create mode 100644 tests/dummy/config/environment.js create mode 100644 tests/dummy/public/.gitkeep create mode 100644 tests/dummy/public/crossdomain.xml create mode 100644 tests/dummy/public/robots.txt create mode 100644 tests/helpers/resolver.js create mode 100644 tests/helpers/start-app.js create mode 100644 tests/index.html create mode 100644 tests/test-helper.js create mode 100644 tests/unit/.gitkeep create mode 100644 vendor/.gitkeep diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 0000000..959e169 --- /dev/null +++ b/.bowerrc @@ -0,0 +1,4 @@ +{ + "directory": "bower_components", + "analytics": false +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5d5dea4 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,33 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org + +root = true + + +[*] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space +indent_size = 2 + +[*.js] +indent_style = space +indent_size = 2 + +[*.hbs] +indent_style = space +indent_size = 2 + +[*.css] +indent_style = space +indent_size = 2 + +[*.html] +indent_style = space +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false diff --git a/.ember-cli b/.ember-cli new file mode 100644 index 0000000..ee64cfe --- /dev/null +++ b/.ember-cli @@ -0,0 +1,9 @@ +{ + /** + Ember CLI sends analytics information by default. The data is completely + anonymous, but there are times when you might want to disable this behavior. + + Setting `disableAnalytics` to true will prevent any data from being sent. + */ + "disableAnalytics": false +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..86fceae --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# See http://help.github.com/ignore-files/ for more about ignoring files. + +# compiled output +/dist +/tmp + +# dependencies +/node_modules +/bower_components + +# misc +/.sass-cache +/connect.lock +/coverage/* +/libpeerconnection.log +npm-debug.log +testem.log diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..df6253d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +--- +language: node_js + +sudo: false + +cache: + directories: + - node_modules + +install: + - npm install -g bower + - npm install + - bower install + +script: + - npm test diff --git a/Brocfile.js b/Brocfile.js new file mode 100644 index 0000000..8c25bfe --- /dev/null +++ b/Brocfile.js @@ -0,0 +1,20 @@ +/* global require, module */ + +var EmberAddon = require('ember-cli/lib/broccoli/ember-addon'); + +var app = new EmberAddon(); + +// Use `app.import` to add additional libraries to the generated +// output files. +// +// If you need to use different assets in different +// environments, specify an object as the first parameter. That +// object's keys should be the environment name and the values +// should be the asset to use in that environment. +// +// If the library that you are including contains AMD or ES6 +// modules that you would like to import into your application +// please specify an object with the list of modules as keys +// along with the exports of each module as its value. + +module.exports = app.toTree(); diff --git a/README.md b/README.md new file mode 100644 index 0000000..25ae103 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# Ember-cli-yuidoc + +This README outlines the details of collaborating on this Ember addon. + +## Installation + +* `git clone` this repository +* `npm install` +* `bower install` + +## Running + +* `ember server` +* Visit your app at http://localhost:4200. + +## Running Tests + +* `ember test` +* `ember test --server` + +## Building + +* `ember build` + +For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/). diff --git a/addon/.gitkeep b/addon/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/app/.gitkeep b/app/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..599ddbf --- /dev/null +++ b/bower.json @@ -0,0 +1,17 @@ +{ + "name": "ember-cli-yuidoc", + "dependencies": { + "handlebars": "~1.3.0", + "jquery": "^1.11.1", + "ember": "1.7.0", + "ember-data": "1.0.0-beta.10", + "ember-resolver": "~0.1.7", + "loader.js": "stefanpenner/loader.js#1.0.1", + "ember-cli-shims": "stefanpenner/ember-cli-shims#0.0.3", + "ember-cli-test-loader": "rwjblue/ember-cli-test-loader#0.0.4", + "ember-load-initializers": "stefanpenner/ember-load-initializers#0.0.2", + "ember-qunit": "0.1.8", + "ember-qunit-notifications": "0.0.4", + "qunit": "~1.15.0" + } +} \ No newline at end of file diff --git a/config/environment.js b/config/environment.js new file mode 100644 index 0000000..0dfaed4 --- /dev/null +++ b/config/environment.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = function(/* environment, appConfig */) { + return { }; +}; diff --git a/index.js b/index.js new file mode 100644 index 0000000..44bb1d7 --- /dev/null +++ b/index.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = { + name: 'ember-cli-yuidoc' +}; diff --git a/package.json b/package.json new file mode 100644 index 0000000..67493d0 --- /dev/null +++ b/package.json @@ -0,0 +1,39 @@ +{ + "name": "ember-cli-yuidoc", + "version": "0.0.0", + "directories": { + "doc": "doc", + "test": "tests" + }, + "scripts": { + "start": "ember server", + "build": "ember build", + "test": "ember test" + }, + "repository": "https://github.com/stefanpenner/ember-cli", + "engines": { + "node": ">= 0.10.0" + }, + "author": "", + "license": "MIT", + "devDependencies": { + "body-parser": "^1.2.0", + "broccoli-asset-rev": "0.3.1", + "broccoli-ember-hbs-template-compiler": "^1.6.1", + "ember-cli": "0.1.2", + "ember-cli-content-security-policy": "0.3.0", + "ember-export-application-global": "^1.0.0", + "ember-cli-ic-ajax": "0.1.1", + "ember-cli-inject-live-reload": "^1.3.0", + "ember-cli-qunit": "0.1.0", + "ember-data": "1.0.0-beta.10", + "express": "^4.8.5", + "glob": "^4.0.5" + }, + "keywords": [ + "ember-addon" + ], + "ember-addon": { + "configPath": "tests/dummy/config" + } +} \ No newline at end of file diff --git a/testem.json b/testem.json new file mode 100644 index 0000000..eff93f9 --- /dev/null +++ b/testem.json @@ -0,0 +1,11 @@ +{ + "framework": "qunit", + "test_page": "tests/index.html", + "launch_in_ci": [ + "PhantomJS" + ], + "launch_in_dev": [ + "PhantomJS", + "Chrome" + ] +} diff --git a/tests/.jshintrc b/tests/.jshintrc new file mode 100644 index 0000000..6ebf71a --- /dev/null +++ b/tests/.jshintrc @@ -0,0 +1,74 @@ +{ + "predef": [ + "document", + "window", + "location", + "setTimeout", + "$", + "-Promise", + "QUnit", + "define", + "console", + "equal", + "notEqual", + "notStrictEqual", + "test", + "asyncTest", + "testBoth", + "testWithDefault", + "raises", + "throws", + "deepEqual", + "start", + "stop", + "ok", + "strictEqual", + "module", + "moduleFor", + "moduleForComponent", + "moduleForModel", + "process", + "expect", + "visit", + "exists", + "fillIn", + "click", + "keyEvent", + "triggerEvent", + "find", + "findWithAssert", + "wait", + "DS", + "isolatedContainer", + "startApp", + "andThen", + "currentURL", + "currentPath", + "currentRouteName" + ], + "node": false, + "browser": false, + "boss": true, + "curly": false, + "debug": false, + "devel": false, + "eqeqeq": true, + "evil": true, + "forin": false, + "immed": false, + "laxbreak": false, + "newcap": true, + "noarg": true, + "noempty": false, + "nonew": false, + "nomen": false, + "onevar": false, + "plusplus": false, + "regexp": false, + "undef": true, + "sub": true, + "strict": false, + "white": false, + "eqnull": true, + "esnext": true +} diff --git a/tests/dummy/.jshintrc b/tests/dummy/.jshintrc new file mode 100644 index 0000000..fbcc848 --- /dev/null +++ b/tests/dummy/.jshintrc @@ -0,0 +1,32 @@ +{ + "predef": [ + "document", + "window", + "-Promise" + ], + "browser" : true, + "boss" : true, + "curly": true, + "debug": false, + "devel": true, + "eqeqeq": true, + "evil": true, + "forin": false, + "immed": false, + "laxbreak": false, + "newcap": true, + "noarg": true, + "noempty": false, + "nonew": false, + "nomen": false, + "onevar": false, + "plusplus": false, + "regexp": false, + "undef": true, + "sub": true, + "strict": false, + "white": false, + "eqnull": true, + "esnext": true, + "unused": true +} diff --git a/tests/dummy/app/app.js b/tests/dummy/app/app.js new file mode 100644 index 0000000..757df38 --- /dev/null +++ b/tests/dummy/app/app.js @@ -0,0 +1,16 @@ +import Ember from 'ember'; +import Resolver from 'ember/resolver'; +import loadInitializers from 'ember/load-initializers'; +import config from './config/environment'; + +Ember.MODEL_FACTORY_INJECTIONS = true; + +var App = Ember.Application.extend({ + modulePrefix: config.modulePrefix, + podModulePrefix: config.podModulePrefix, + Resolver: Resolver +}); + +loadInitializers(App, config.modulePrefix); + +export default App; diff --git a/tests/dummy/app/components/.gitkeep b/tests/dummy/app/components/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/dummy/app/controllers/.gitkeep b/tests/dummy/app/controllers/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/dummy/app/helpers/.gitkeep b/tests/dummy/app/helpers/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/dummy/app/index.html b/tests/dummy/app/index.html new file mode 100644 index 0000000..b7d8600 --- /dev/null +++ b/tests/dummy/app/index.html @@ -0,0 +1,21 @@ + + + + + + Dummy + + + + {{content-for 'head'}} + + + + + + {{content-for 'body'}} + + + + + diff --git a/tests/dummy/app/models/.gitkeep b/tests/dummy/app/models/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/dummy/app/router.js b/tests/dummy/app/router.js new file mode 100644 index 0000000..cef554b --- /dev/null +++ b/tests/dummy/app/router.js @@ -0,0 +1,11 @@ +import Ember from 'ember'; +import config from './config/environment'; + +var Router = Ember.Router.extend({ + location: config.locationType +}); + +Router.map(function() { +}); + +export default Router; diff --git a/tests/dummy/app/routes/.gitkeep b/tests/dummy/app/routes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/dummy/app/styles/.gitkeep b/tests/dummy/app/styles/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/dummy/app/styles/app.css b/tests/dummy/app/styles/app.css new file mode 100644 index 0000000..9adb5ad --- /dev/null +++ b/tests/dummy/app/styles/app.css @@ -0,0 +1,3 @@ +html, body { + margin: 20px; +} diff --git a/tests/dummy/app/templates/.gitkeep b/tests/dummy/app/templates/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/dummy/app/templates/application.hbs b/tests/dummy/app/templates/application.hbs new file mode 100644 index 0000000..d08c11f --- /dev/null +++ b/tests/dummy/app/templates/application.hbs @@ -0,0 +1,3 @@ +

Welcome to Ember.js

+ +{{outlet}} diff --git a/tests/dummy/app/templates/components/.gitkeep b/tests/dummy/app/templates/components/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/dummy/app/views/.gitkeep b/tests/dummy/app/views/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/dummy/config/environment.js b/tests/dummy/config/environment.js new file mode 100644 index 0000000..bc0d538 --- /dev/null +++ b/tests/dummy/config/environment.js @@ -0,0 +1,47 @@ +/* jshint node: true */ + +module.exports = function(environment) { + var ENV = { + modulePrefix: 'dummy', + environment: environment, + baseURL: '/', + locationType: 'auto', + EmberENV: { + FEATURES: { + // Here you can enable experimental features on an ember canary build + // e.g. 'with-controller': true + } + }, + + APP: { + // Here you can pass flags/options to your application instance + // when it is created + } + }; + + if (environment === 'development') { + // ENV.APP.LOG_RESOLVER = true; + ENV.APP.LOG_ACTIVE_GENERATION = true; + // ENV.APP.LOG_TRANSITIONS = true; + // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; + ENV.APP.LOG_VIEW_LOOKUPS = true; + } + + if (environment === 'test') { + // Testem prefers this... + ENV.baseURL = '/'; + ENV.locationType = 'auto'; + + // keep test console output quieter + ENV.APP.LOG_ACTIVE_GENERATION = false; + ENV.APP.LOG_VIEW_LOOKUPS = false; + + ENV.APP.rootElement = '#ember-testing'; + } + + if (environment === 'production') { + + } + + return ENV; +}; diff --git a/tests/dummy/public/.gitkeep b/tests/dummy/public/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/dummy/public/crossdomain.xml b/tests/dummy/public/crossdomain.xml new file mode 100644 index 0000000..29a035d --- /dev/null +++ b/tests/dummy/public/crossdomain.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + diff --git a/tests/dummy/public/robots.txt b/tests/dummy/public/robots.txt new file mode 100644 index 0000000..ee2cc21 --- /dev/null +++ b/tests/dummy/public/robots.txt @@ -0,0 +1,3 @@ +# robotstxt.org/ + +User-agent: * diff --git a/tests/helpers/resolver.js b/tests/helpers/resolver.js new file mode 100644 index 0000000..28f4ece --- /dev/null +++ b/tests/helpers/resolver.js @@ -0,0 +1,11 @@ +import Resolver from 'ember/resolver'; +import config from '../../config/environment'; + +var resolver = Resolver.create(); + +resolver.namespace = { + modulePrefix: config.modulePrefix, + podModulePrefix: config.podModulePrefix +}; + +export default resolver; diff --git a/tests/helpers/start-app.js b/tests/helpers/start-app.js new file mode 100644 index 0000000..7cd4320 --- /dev/null +++ b/tests/helpers/start-app.js @@ -0,0 +1,25 @@ +import Ember from 'ember'; +import Application from '../../app'; +import Router from '../../router'; +import config from '../../config/environment'; + +export default function startApp(attrs) { + var App; + + var attributes = Ember.merge({}, config.APP); + attributes = Ember.merge(attributes, attrs); // use defaults, but you can override; + + Router.reopen({ + location: 'none' + }); + + Ember.run(function() { + App = Application.create(attributes); + App.setupForTesting(); + App.injectTestHelpers(); + }); + + App.reset(); // this shouldn't be needed, i want to be able to "start an app at a specific URL" + + return App; +} diff --git a/tests/index.html b/tests/index.html new file mode 100644 index 0000000..85990e1 --- /dev/null +++ b/tests/index.html @@ -0,0 +1,45 @@ + + + + + + Dummy Tests + + + + {{content-for 'head'}} + {{content-for 'test-head'}} + + + + + + + +
+
+ + {{content-for 'body'}} + {{content-for 'test-body'}} + + + + + + + diff --git a/tests/test-helper.js b/tests/test-helper.js new file mode 100644 index 0000000..b5f6449 --- /dev/null +++ b/tests/test-helper.js @@ -0,0 +1,12 @@ +import resolver from './helpers/resolver'; +import { + setResolver +} from 'ember-qunit'; + +setResolver(resolver); + +document.write('
'); + +QUnit.config.urlConfig.push({ id: 'nocontainer', label: 'Hide container'}); +var containerVisibility = QUnit.urlParams.nocontainer ? 'hidden' : 'visible'; +document.getElementById('ember-testing-container').style.visibility = containerVisibility; diff --git a/tests/unit/.gitkeep b/tests/unit/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/vendor/.gitkeep b/vendor/.gitkeep new file mode 100644 index 0000000..e69de29