forked from discourse/discourse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEV: Support for running theme test with Ember CLI (second attempt)
This PR includes support for running theme tests in legacy ember production envrionments.
- Loading branch information
Showing
30 changed files
with
273 additions
and
152 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
4 changes: 4 additions & 0 deletions
4
app/assets/javascripts/discourse/public/assets/scripts/discourse-test-listen-boot.js
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,4 @@ | ||
document.write( | ||
"<style>#ember-testing-container { position: fixed; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: auto; z-index: 9999; border: 1px solid #ccc; transform: translateZ(0)} #ember-testing { width: 200%; height: 200%; transform: scale(0.5); transform-origin: top left; }</style>" | ||
); | ||
require('discourse/tests/test-boot-ember-cli'); |
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
1 change: 0 additions & 1 deletion
1
...pts/discourse/tests/core_plugins_tests.js → ...javascripts/discourse/tests/core-tests.js
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
//= require_tree ./acceptance | ||
//= require_tree ./integration | ||
//= require_tree ./unit | ||
//= require ./plugin_tests |
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
10 changes: 10 additions & 0 deletions
10
app/assets/javascripts/discourse/tests/plugin-tests.js.erb
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,10 @@ | ||
<% | ||
Discourse.plugins.each do |p| | ||
root_path = "#{File.dirname(p.path)}/test/javascripts" | ||
|
||
to_glob = [root_path + '/**/**.es6'] | ||
to_glob << (root_path + '/**/**.js') if p.transpile_js | ||
|
||
Dir.glob(to_glob) { |f| require_asset(f) } | ||
end | ||
%> |
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 |
---|---|---|
|
@@ -3,4 +3,3 @@ | |
//= require_tree ./helpers | ||
//= require_tree ./fixtures | ||
//= require ./setup-tests | ||
//= require test-shims |
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 was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
app/assets/javascripts/discourse/tests/theme_qunit_vendor.js
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
//= require logster | ||
|
||
//= require template_include.js | ||
|
||
//= require message-bus | ||
//= require jquery.ui.widget.js | ||
//= require Markdown.Converter.js | ||
//= require bootbox.js | ||
//= require popper.js | ||
//= require bootstrap-modal.js | ||
//= require caret_position | ||
//= require jquery.sortable.js | ||
//= require lodash.js | ||
//= require itsatrap.js | ||
//= require rsvp.js | ||
//= require uppy.js | ||
//= require buffered-proxy | ||
//= require virtual-dom | ||
//= require virtual-dom-amd | ||
//= require discourse-shims | ||
//= require pretty-text-bundle |
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 @@ | ||
//= require set-prototype-polyfill | ||
//= require env | ||
//= require jquery | ||
//= require ember.debug.js | ||
//= require discourse-loader | ||
//= require vendor-common |
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 |
---|---|---|
@@ -1,23 +1,2 @@ | ||
//= require ember_jquery | ||
|
||
//= require logster | ||
|
||
//= require template_include.js | ||
|
||
//= require message-bus | ||
//= require jquery.ui.widget.js | ||
//= require Markdown.Converter.js | ||
//= require bootbox.js | ||
//= require popper.js | ||
//= require bootstrap-modal.js | ||
//= require caret_position | ||
//= require jquery.sortable.js | ||
//= require lodash.js | ||
//= require itsatrap.js | ||
//= require rsvp.js | ||
//= require uppy.js | ||
//= require buffered-proxy | ||
//= require virtual-dom | ||
//= require virtual-dom-amd | ||
//= require discourse-shims | ||
//= require pretty-text-bundle | ||
//= require vendor-common |
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
Oops, something went wrong.