diff --git a/test/smoke/dom-bind-async.html b/test/smoke/dom-bind-async.html new file mode 100644 index 0000000000..d0bc95e51c --- /dev/null +++ b/test/smoke/dom-bind-async.html @@ -0,0 +1,86 @@ + + + + + dom-bind + + + + + + + + + + + + + + + + + + diff --git a/test/smoke/dynamic-dom-bind.html b/test/smoke/dynamic-dom-bind.html new file mode 100644 index 0000000000..4ec832f98b --- /dev/null +++ b/test/smoke/dynamic-dom-bind.html @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/test/smoke/dynamic-dom-bind2.html b/test/smoke/dynamic-dom-bind2.html new file mode 100644 index 0000000000..c298f167e5 --- /dev/null +++ b/test/smoke/dynamic-dom-bind2.html @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/test/unit/dom-bind-elements1.html b/test/unit/dom-bind-elements1.html index 0696569900..254713468e 100644 --- a/test/unit/dom-bind-elements1.html +++ b/test/unit/dom-bind-elements1.html @@ -7,4 +7,39 @@ } } }); - \ No newline at end of file + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/unit/polymer-dom-elements.html b/test/unit/polymer-dom-elements.html index 2e24c89a9b..763cc81430 100644 --- a/test/unit/polymer-dom-elements.html +++ b/test/unit/polymer-dom-elements.html @@ -55,7 +55,7 @@ Polymer({ is: 'x-test-no-distribute' }); - + - + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/unit/polymer-dom.js b/test/unit/polymer-dom.js index aa8f6aade3..bde29c422f 100644 --- a/test/unit/polymer-dom.js +++ b/test/unit/polymer-dom.js @@ -550,6 +550,24 @@ suite('Polymer.dom', function() { } }); + test('flush causes attached and re-flushes if necessary', function(done) { + var a = document.createElement('x-attach1'); + Polymer.dom(document.body).appendChild(a); + Polymer.dom.flush(); + function testHeight() { + assert.equal(a.offsetHeight, 540); + done(); + } + // note: CustomElements.takeRecords doesn't process all mutations under + // SD polyfill and therefore we have no measurement guarantee in that case. + if (Polymer.Settings.useShadow && !Polymer.Settings.useNativeShadow) { + setTimeout(testHeight); + } else { + testHeight(); + } + + }); + }); suite('Polymer.dom accessors', function() {