Upstream the PolyGerrit plugin for Checks. This is just a basic buildable and runnable copy of the experimentally devloped plugin. There are some obvious remaining TODOs: * Rename build-result to checks everywhere. * Integrate PolyGerrit plugin into the backend plugin jar. * Hook up with the new Rest API endpoints for checks. Change-Id: Ic6f24c434ad48f694d68b32e87023d60afecc6fa
diff --git a/gr-checks/builds-results-change-view-tab-header-view_test.html b/gr-checks/builds-results-change-view-tab-header-view_test.html new file mode 100644 index 0000000..b71371b --- /dev/null +++ b/gr-checks/builds-results-change-view-tab-header-view_test.html
@@ -0,0 +1,35 @@ +<!DOCTYPE html> +<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"> +<script src="imports.js"></script> +<script src="webcomponentsjs/webcomponents-lite.js"></script> +<link rel="import" href="polymer/polymer.html"> + +<title>builds-results-change-view-tab-header-view</title> +<link rel="import" href="webcomponent_lib/builds-results-change-view-tab-header-view.html"> + +<test-fixture id="basic"> + <template is="dom-template"> + <builds-results-change-view-tab-header-view></builds-results-change-view-tab-header-view> + </template> +</test-fixture> + +<script> + suite('builds-results-change-view-tab-header-view tests', () => { + let element; + let sandbox; + + setup((done) => { + sandbox = sinon.sandbox.create(); + + + element = fixture('basic'); + flush(done); + }); + + teardown(() => { sandbox.restore(); }); + + test('renders the header', () => { + assert.include(element.textContent.trim(), 'Checks'); + }); + }); +</script>