diff --git a/lib/client/controller.js b/lib/client/controller.js index 57a4226..85944a5 100644 --- a/lib/client/controller.js +++ b/lib/client/controller.js @@ -15,6 +15,7 @@ function Controller() { this._sections = new SectionList(this); this._runButton = byId('run'); this._runFailedButton = byId('runFailed'); + this._showBrowser = byId('showBrowser'); this.state = RunStates.PENDING; @@ -66,6 +67,12 @@ Controller.prototype = { byId('collapseAll').addEventListener('click', sections.collapseAll.bind(sections)); byId('expandErrors').addEventListener('click', sections.expandErrors.bind(sections)); + this._showBrowser.addEventLestener('change', function(e) { + var value = e.target.value; + byId('stylesToHideBrowsers').innerText = !value ? '' : + '.section[data-browser-id]:not([data-browser-id="' + value + '"]){display:none}'; + }); + this._runButton.addEventListener('click', function() { _this._run(); }); diff --git a/lib/views/main.hbs b/lib/views/main.hbs index 8ec95a6..40fa5c9 100644 --- a/lib/views/main.hbs +++ b/lib/views/main.hbs @@ -21,6 +21,7 @@ + {{> show-browser }} {{#each suites}} {{> suite}} {{/each}} diff --git a/lib/views/partials/show-browser.hbs b/lib/views/partials/show-browser.hbs new file mode 100644 index 0000000..3e1f68d --- /dev/null +++ b/lib/views/partials/show-browser.hbs @@ -0,0 +1,11 @@ + +