From 4bc055b943467af8885fa29b2389a2b150cb8c36 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Thu, 13 Aug 2015 11:19:04 -0700 Subject: [PATCH] Add tests for key splice fix. --- test/unit/dom-repeat.html | 35 +++++++++++++++++++++++++-- test/unit/notify-path.html | 49 ++++++++++++++++---------------------- 2 files changed, 54 insertions(+), 30 deletions(-) diff --git a/test/unit/dom-repeat.html b/test/unit/dom-repeat.html index 3739ff1a2c..56757561d1 100644 --- a/test/unit/dom-repeat.html +++ b/test/unit/dom-repeat.html @@ -3092,8 +3092,6 @@

inDocumentRepeater

}); - - suite('item changing on instance', function() { test('primitive values - initial stamping', function() { @@ -3191,6 +3189,39 @@

inDocumentRepeater

}); + suite('external change & notification', function() { + + test('in-place sort', function(done) { + var items = [ + 173, 166, 145, 755, 907, + 836, 564, 721, 540, 372, + 244, 145, 525, 958, 595, + 207, 103, 602, 769, 190]; + primitive.items = items; + setTimeout(function() { + var stamped1 = Polymer.dom(primitive.$.container1).querySelectorAll('*:not(template)'); + for (var i=0; i