From 9f7d6bc37c90c75ab62555a15469ac1da5475a5d Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Sun, 6 Aug 2017 03:02:27 +0300 Subject: [PATCH] test(ngOptions): fix flaky test on Firefox 54+ and Safari 9 --- test/ng/directive/ngOptionsSpec.js | 203 ++++++++++++++++++----------- 1 file changed, 128 insertions(+), 75 deletions(-) diff --git a/test/ng/directive/ngOptionsSpec.js b/test/ng/directive/ngOptionsSpec.js index 1ab5d0a91889..806993b83827 100644 --- a/test/ng/directive/ngOptionsSpec.js +++ b/test/ng/directive/ngOptionsSpec.js @@ -2922,84 +2922,137 @@ describe('ngOptions', function() { }); - it('should not re-set the `selected` property if it already has the correct value', function() { - scope.values = [{name: 'A'}, {name: 'B'}]; - createMultiSelect(); + // Support: Safari 9 + // This test relies defining a getter/setter `selected` property on either `