test('Supports applications that don\'t have the ember-application CSS class', async function t(assert) { let name = null; let rootElement = document.body; await visit('/simple'); assert.dom(rootElement).hasClass( 'ember-application', 'The rootElement has the .ember-application CSS class' ); rootElement.classList.remove('ember-application'); // Restart the inspector EmberDebug.start(); port = EmberDebug.port; port.reopen({ send(n/*, m*/) { name = n; } }); await visit('/simple'); assert.equal(name, 'view:viewTree'); });
test("Supports applications that don't have the ember-application CSS class", async function t(assert) { let name = null; let $rootElement = $('body'); await visit('/simple'); assert.ok($rootElement.hasClass('ember-application'), "The rootElement has the .ember-application CSS class"); $rootElement.removeClass('ember-application'); // Restart the inspector EmberDebug.start(); port = EmberDebug.port; port.reopen({ send(n/*, m*/) { name = n; } }); await visit('/simple'); assert.equal(name, 'view:viewTree'); });