UI console (#4631)

* adding columnify and ember-cli-cjs-transform

* add yargs-parser

* remove vendored yargs-parser tokenizer and use cjs transform to import it from actual yargs-parser

* add clear command that clears the log, but maintains history

* make codemirror have no gutter and be auto-height when rendered in the console output log

* add fullscreen command and hook up fullscreen toggle button

* hook up copy button
This commit is contained in:
madalynrose
2018-05-25 16:33:22 -04:00
committed by GitHub
parent 3bdfa4ae0a
commit b41b07a373
63 changed files with 2433 additions and 153 deletions

View File

@@ -0,0 +1,17 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('console/log-text', 'Integration | Component | console/log text', {
integration: true,
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.on('myAction', function(val) { ... });
const text = 'Success! You did a thing!';
this.set('content', text);
this.render(hbs`{{console/log-text content=content}}`);
assert.dom('pre').includesText(text);
});