Skip to content

Commit 495876d

Browse files
committed
Restoring tests
1 parent e1b1bef commit 495876d

File tree

3 files changed

+16
-231
lines changed

3 files changed

+16
-231
lines changed

test/attribution-test.html

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,40 @@
33
<head>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
6-
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
6+
<script src="../../webcomponentsjs/webcomponents-loader.js"></script>
77
<script src="../../web-component-tester/browser.js"></script>
88
<script src="../../iron-test-helpers/test-helpers.js"></script>
99
<link rel="import" href="../api-console.html">
1010
</head>
1111
<body>
12-
<test-fixture id="basic">
12+
13+
<test-fixture id="Basic">
1314
<template>
1415
<api-console></api-console>
1516
</template>
1617
</test-fixture>
17-
<script>
18-
/* global fixture, assert, flush */
19-
suite('basic', function() {
20-
var element;
21-
this.timeout(20000);
2218

23-
setup(function() {
24-
element = fixture('basic');
25-
});
19+
<test-fixture id="NoAttr">
20+
<template>
21+
<api-console no-attribution></api-console>
22+
</template>
23+
</test-fixture>
2624

25+
<script>
26+
suite('Attribution', function() {
2727
test('Attribution logo is rendered', function(done) {
28+
const element = fixture('Basic');
2829
flush(function() {
29-
var node = Polymer.dom(element.root).querySelector('.powered-by');
30+
const node = element.shadowRoot.querySelector('.powered-by');
3031
assert.ok(node);
3132
done();
3233
});
3334
});
3435

3536
test('Attribution is removed from the DOM', function() {
37+
const element = fixture('NoAttr');
3638
flush(function() {
37-
element.noAttribution = true;
38-
var node = Polymer.dom(element.root).querySelector('.powered-by');
39+
const node = element.shadowRoot.querySelector('.powered-by');
3940
assert.notOk(node);
4041
});
4142
});

test/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
WCT.loadSuites([
1414
'basic-test.html',
1515
'raml-aware-test.html',
16-
'amf-computations-test.html'
17-
// 'request-test.html',
18-
// 'attribution-test.html'
16+
'amf-computations-test.html',
17+
'attribution-test.html'
1918
]);
2019
</script>
2120
</body>

test/request-test.html

Lines changed: 0 additions & 215 deletions
This file was deleted.

0 commit comments

Comments
 (0)