| Index: third_party/polymer/components/iron-overlay-behavior/test/iron-overlay-backdrop.html
|
| diff --git a/third_party/polymer/components/iron-overlay-behavior/test/iron-overlay-backdrop.html b/third_party/polymer/components/iron-overlay-behavior/test/iron-overlay-backdrop.html
|
| index a620b5efd453698d38944375299ae790301f2e58..89c2e9afa1e9d1c5646dbb9540318d3f7a03085a 100644
|
| --- a/third_party/polymer/components/iron-overlay-behavior/test/iron-overlay-backdrop.html
|
| +++ b/third_party/polymer/components/iron-overlay-behavior/test/iron-overlay-backdrop.html
|
| @@ -38,15 +38,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| }
|
| </style>
|
|
|
| - <style is="custom-style">
|
| - iron-overlay-backdrop {
|
| - /* For quicker tests */
|
| - --iron-overlay-backdrop: {
|
| - transition: none;
|
| - }
|
| - }
|
| - </style>
|
| -
|
| </head>
|
|
|
| <body>
|
| @@ -76,13 +67,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
| test('backdrop size matches parent size', function(done) {
|
| runAfterOpen(overlay, function() {
|
| - Polymer.Base.async(function() {
|
| - var backdrop = overlay.backdropElement;
|
| - var parent = backdrop.parentElement;
|
| - assert.strictEqual(backdrop.offsetWidth, parent.clientWidth, 'backdrop width matches parent width');
|
| - assert.strictEqual(backdrop.offsetHeight, parent.clientHeight, 'backdrop height matches parent height');
|
| - done();
|
| - }, 1);
|
| + // Flush so we are sure backdrop is added in the DOM.
|
| + Polymer.dom.flush();
|
| + var backdrop = overlay.backdropElement;
|
| + var parent = backdrop.parentElement;
|
| + assert.strictEqual(backdrop.offsetWidth, parent.clientWidth, 'backdrop width matches parent width');
|
| + assert.strictEqual(backdrop.offsetHeight, parent.clientHeight, 'backdrop height matches parent height');
|
| + done();
|
| });
|
| });
|
|
|
|
|