update sorting menus
This commit is contained in:
parent
9622aceeca
commit
705a817b12
29 changed files with 361 additions and 222 deletions
|
@ -19,7 +19,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<script>
|
||||
WCT.loadSuites([
|
||||
'positioning.html',
|
||||
'small-devices.html'
|
||||
'small-devices.html',
|
||||
'positioning.html?dom=shadow',
|
||||
'small-devices.html?dom=shadow'
|
||||
]);
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -16,9 +16,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
<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="../../test-fixture/test-fixture.html">
|
||||
<link rel="import" href="../paper-drawer-panel.html">
|
||||
</head>
|
||||
<style>
|
||||
|
@ -53,8 +50,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
test('drawer is positioned correctly', function(done) {
|
||||
var f, drawer, main;
|
||||
f = fixture('left-drawer');
|
||||
drawer = f.querySelector('#drawer');
|
||||
main = f.querySelector('#main');
|
||||
drawer = f.$$('#drawer');
|
||||
main = f.$$('#main');
|
||||
|
||||
Polymer.Base.async(function() {
|
||||
var drawerStyle = window.getComputedStyle(drawer);
|
||||
|
@ -72,13 +69,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
test('right-drawer is positioned correctly', function(done) {
|
||||
var f, drawer, main;
|
||||
f = fixture('right-drawer');
|
||||
drawer = f.querySelector('#drawer');
|
||||
main = f.querySelector('#main');
|
||||
drawer = f.$$('#drawer');
|
||||
main = f.$$('#main');
|
||||
|
||||
Polymer.Base.async(function() {
|
||||
var drawerStyle = window.getComputedStyle(drawer);
|
||||
expect(drawerStyle.right).to.be.equal('0px');
|
||||
|
||||
|
||||
try {
|
||||
expect(drawerStyle.left).to.be.equal('auto');
|
||||
} catch(e) {
|
||||
|
|
|
@ -16,9 +16,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
<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="../../test-fixture/test-fixture.html">
|
||||
<link rel="import" href="../paper-drawer-panel.html">
|
||||
</head>
|
||||
<style>
|
||||
|
@ -61,8 +58,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
test('drawer is hidden by default', function(done) {
|
||||
var f, panel, drawer, main;
|
||||
f = fixture('left-drawer');
|
||||
drawer = f.querySelector('#drawer');
|
||||
main = f.querySelector('#main');
|
||||
drawer = f.$$('#drawer');
|
||||
main = f.$$('#main');
|
||||
|
||||
f.set('forceNarrow', true);
|
||||
f._forceNarrowChanged();
|
||||
|
@ -80,8 +77,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
test('right-drawer is hidden by default', function(done) {
|
||||
var f, panel, drawer, main;
|
||||
f = fixture('right-drawer');
|
||||
drawer = f.querySelector('#drawer');
|
||||
main = f.querySelector('#main');
|
||||
drawer = f.$$('#drawer');
|
||||
main = f.$$('#main');
|
||||
|
||||
f.set('forceNarrow', true);
|
||||
f._forceNarrowChanged();
|
||||
|
@ -95,11 +92,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
});
|
||||
});
|
||||
|
||||
test('drawer is can be opened', function(done) {
|
||||
test('drawer can be opened', function(done) {
|
||||
var f, panel, drawer, main;
|
||||
f = fixture('left-drawer');
|
||||
drawer = f.querySelector('#drawer');
|
||||
main = f.querySelector('#main');
|
||||
drawer = f.$$('#drawer');
|
||||
main = f.$$('#main');
|
||||
|
||||
f.set('forceNarrow', true);
|
||||
f._forceNarrowChanged();
|
||||
|
@ -119,8 +116,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
test('right-drawer can be closed', function(done) {
|
||||
var f, panel, drawer, main;
|
||||
f = fixture('right-drawer');
|
||||
drawer = f.querySelector('#drawer');
|
||||
main = f.querySelector('#main');
|
||||
drawer = f.$$('#drawer');
|
||||
main = f.$$('#main');
|
||||
|
||||
f.set('forceNarrow', true);
|
||||
f._forceNarrowChanged();
|
||||
|
@ -134,7 +131,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
done();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue