', function (assert) {
- this.template('application', "Go to photos
");
- this.routes(function () {
- this.route('photos');
- });
-
- return this.renderToHTML('/').then(function (html) {
- assert.htmlMatches(
- html,
- ''
- );
- });
- });
-
- QUnit.test('{{link-to}}', function (assert) {
- this.template('application', "{{#link-to route='photos'}}Go to photos{{/link-to}}
");
- this.routes(function () {
- this.route('photos');
- });
-
- return this.renderToHTML('/').then(function (html) {
- assert.htmlMatches(
- html,
- ''
- );
- });
- });
-
- QUnit.test('non-escaped content', function (assert) {
- this.routes(function () {
- this.route('photos');
- });
-
- this.template('application', '{{{this.title}}}
');
- this.controller('application', {
- title: 'Hello world',
- });
-
- return this.renderToHTML('/').then(function (html) {
- assert.htmlMatches(html, 'Hello world
');
- });
- });
-
- QUnit.test('outlets', function (assert) {
- this.routes(function () {
- this.route('photos');
- });
-
- this.template('application', '{{outlet}}
');
- this.template('index', 'index');
- this.template('photos', 'photos');
-
- let promises = [];
- promises.push(
- this.renderToHTML('/').then(function (html) {
- assert.htmlMatches(html, 'index
');
- })
- );
-
- promises.push(
- this.renderToHTML('/photos').then(function (html) {
- assert.htmlMatches(html, 'photos
');
- })
- );
-
- return this.all(promises);
- });
-
- QUnit.test('lifecycle hooks disabled', function (assert) {
- assert.expect(1);
-
- this.template('application', "{{my-component foo='bar'}}{{outlet}}");
-
- this.component('my-component', {
- didReceiveAttrs() {
- assert.ok(true, 'should trigger didReceiveAttrs hook');
- },
- willRender() {
- assert.ok(false, 'should not trigger willRender hook');
- },
- didRender() {
- assert.ok(false, 'should not trigger didRender hook');
- },
- willInsertElement() {
- assert.ok(false, 'should not trigger willInsertElement hook');
- },
- didInsertElement() {
- assert.ok(false, 'should not trigger didInsertElement hook');
- },
- });
-
- return this.renderToHTML('/');
- });
-});
diff --git a/smoke-tests/node-template/tests/node/component-rendering-test.js b/smoke-tests/node-template/tests/node/component-rendering-test.js
deleted file mode 100644
index 80b1807b305..00000000000
--- a/smoke-tests/node-template/tests/node/component-rendering-test.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import setupComponentTest from './helpers/setup-component.js';
-
-QUnit.module('Components can be rendered without a DOM dependency', function (hooks) {
- setupComponentTest(hooks);
-
- QUnit.test('Simple component', function (assert) {
- let html = this.render('Hello
');
-
- assert.ok(html.match(/Error template rendered!
');
- this.template('a', 'Hello from A
');
-
- this.route('a', {
- model: function () {
- throw new Error('Error from A');
- },
- });
-
- let App = this.createApplication();
-
- return Promise.all([
- fastbootVisit(App, '/a').then(
- assertFastbootResult(assert, {
- url: '/a',
- body: 'Error template rendered!
',
- }),
- handleError(assert)
- ),
- ]);
- });
-
- QUnit.test('Resource-discovery setup', function (assert) {
- class Network {
- constructor() {
- this.requests = [];
- }
-
- fetch(url) {
- this.requests.push(url);
- return Promise.resolve();
- }
- }
-
- this.routes(function () {
- this.route('a');
- this.route('b');
- this.route('c');
- this.route('d');
- this.route('e');
- });
-
- let network;
- this.route('a', {
- model: function () {
- return network.fetch('/a');
- },
- afterModel: function () {
- this.router.replaceWith('b');
- },
- });
-
- this.route('b', {
- model: function () {
- return network.fetch('/b');
- },
- afterModel: function () {
- this.router.replaceWith('c');
- },
- });
-
- this.route('c', {
- model: function () {
- return network.fetch('/c');
- },
- });
-
- this.route('d', {
- model: function () {
- return network.fetch('/d');
- },
- afterModel: function () {
- this.router.replaceWith('e');
- },
- });
-
- this.route('e', {
- model: function () {
- return network.fetch('/e');
- },
- });
-
- this.template('a', '{{x-foo}}');
- this.template('b', '{{x-foo}}');
- this.template('c', '{{x-foo}}');
- this.template('d', '{{x-foo}}');
- this.template('e', '{{x-foo}}');
-
- let xFooInstances = 0;
-
- this.component('x-foo', {
- init: function () {
- this._super();
- xFooInstances++;
- },
- });
-
- let App = this.createApplication();
-
- function assertResources(url, resources) {
- network = new Network();
-
- return App.visit(url, { isBrowser: false, shouldRender: false }).then(function (instance) {
- try {
- let viewRegistry = instance.lookup('-view-registry:main');
- assert.strictEqual(Object.keys(viewRegistry).length, 0, 'did not create any views');
-
- assert.deepEqual(network.requests, resources);
- } finally {
- instance.destroy();
- }
- }, handleError(assert));
- }
-
- return assertResources('/a', ['/a', '/b', '/c'])
- .then(() => {
- return assertResources('/b', ['/b', '/c']);
- })
- .then(() => {
- return assertResources('/c', ['/c']);
- })
- .then(() => {
- return assertResources('/d', ['/d', '/e']);
- })
- .then(() => {
- return assertResources('/e', ['/e']);
- })
- .then(() => {
- assert.strictEqual(xFooInstances, 0, 'it should not create any x-foo components');
- });
- });
-
- QUnit.test('FastBoot: tagless components can render', function (assert) {
- this.template('application', "{{my-component}}
");
- this.component('my-component', { tagName: '' }, 'hello world
');
-
- let App = this.createApplication();
-
- return Promise.all([
- fastbootVisit(App, '/').then(
- assertFastbootResult(assert, {
- url: '/',
- body: /hello world<\/h1><\/div>/,
- }),
- handleError(assert)
- ),
- ]);
- });
-});
diff --git a/tests/docs/expected.js b/tests/docs/expected.js
index 275e5cbd6d3..bbc99afd646 100644
--- a/tests/docs/expected.js
+++ b/tests/docs/expected.js
@@ -275,7 +275,6 @@ module.exports = {
'isAny',
'isArray',
'isBlank',
- 'isBrowser',
'isClassicDecorator',
'isComputed',
'isConst',
@@ -289,7 +288,6 @@ module.exports = {
'isFulfilled',
'isHTMLSafe',
'isTrustedHTML',
- 'isInteractive',
'isNone',
'isObject',
'isPending',
@@ -319,7 +317,6 @@ module.exports = {
'map',
'mapBy',
'match',
- 'matches',
'max',
'mergedProperties',
'meta',