update script loading
This commit is contained in:
parent
31b3061157
commit
22f689e089
65 changed files with 732 additions and 6138 deletions
13
dashboard-ui/bower_components/paper-collapse-item/test/index.html
vendored
Normal file
13
dashboard-ui/bower_components/paper-collapse-item/test/index.html
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Tests</title>
|
||||
<script src="../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
WCT.loadSuites([ 'paper-collapse-item.html' ]);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
50
dashboard-ui/bower_components/paper-collapse-item/test/paper-collapse-item.html
vendored
Normal file
50
dashboard-ui/bower_components/paper-collapse-item/test/paper-collapse-item.html
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>paper-collapse-item</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../../web-component-tester/browser.js"></script>
|
||||
<script src="../../test-fixture/test-fixture-mocha.js"></script>
|
||||
|
||||
<link rel="import" href="../paper-collapse-item.html">
|
||||
<link rel="import" href="../../test-fixture/test-fixture.html">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<test-fixture id="TrivialElement">
|
||||
<template>
|
||||
<paper-collapse-item></paper-collapse-item>
|
||||
</template>
|
||||
</test-fixture>
|
||||
|
||||
<script>
|
||||
suite('<paper-collapse-item>', function() {
|
||||
suite('open/close behavior', function() {
|
||||
var element;
|
||||
|
||||
setup(function() {
|
||||
element = fixture('TrivialElement');
|
||||
});
|
||||
|
||||
test('defaults to closed', function() {
|
||||
expect(element.opened).to.be.eql(false);
|
||||
});
|
||||
|
||||
test('shows open toggle icon when closed', function() {
|
||||
element.opened = false;
|
||||
expect(element._toggleIcon).to.be.eql('icons:expand-more');
|
||||
});
|
||||
|
||||
test('shows open toggle icon when opened', function() {
|
||||
element.opened = true;
|
||||
expect(element._toggleIcon).to.be.eql('icons:expand-less');
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue