From 339d2987fc063013538625f0e85aa9e070c8ca6a Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Wed, 26 Apr 2017 12:38:43 -0400 Subject: [PATCH] update tests --- test/js/samples/collapses-text-around-comments/expected.js | 2 +- test/js/samples/computed-collapsed-if/expected.js | 2 +- test/js/samples/each-block-changed-check/expected.js | 2 +- test/js/samples/event-handlers-custom/expected.js | 2 +- test/js/samples/if-block-no-update/expected.js | 2 +- test/js/samples/if-block-simple/expected.js | 2 +- test/js/samples/use-elements-as-anchors/expected.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/js/samples/collapses-text-around-comments/expected.js b/test/js/samples/collapses-text-around-comments/expected.js index dd6f2a3f27..418bda27b4 100644 --- a/test/js/samples/collapses-text-around-comments/expected.js +++ b/test/js/samples/collapses-text-around-comments/expected.js @@ -55,7 +55,7 @@ function SvelteComponent ( options ) { this._handlers = Object.create( null ); - this._root = options._root; + this._root = options._root || this; this._yield = options._yield; this._torndown = false; diff --git a/test/js/samples/computed-collapsed-if/expected.js b/test/js/samples/computed-collapsed-if/expected.js index 96eb2a6202..df9295d28b 100644 --- a/test/js/samples/computed-collapsed-if/expected.js +++ b/test/js/samples/computed-collapsed-if/expected.js @@ -38,7 +38,7 @@ function SvelteComponent ( options ) { this._handlers = Object.create( null ); - this._root = options._root; + this._root = options._root || this; this._yield = options._yield; this._torndown = false; diff --git a/test/js/samples/each-block-changed-check/expected.js b/test/js/samples/each-block-changed-check/expected.js index 24ed9066ee..17b22c9a50 100644 --- a/test/js/samples/each-block-changed-check/expected.js +++ b/test/js/samples/each-block-changed-check/expected.js @@ -131,7 +131,7 @@ function SvelteComponent ( options ) { this._handlers = Object.create( null ); - this._root = options._root; + this._root = options._root || this; this._yield = options._yield; this._torndown = false; diff --git a/test/js/samples/event-handlers-custom/expected.js b/test/js/samples/event-handlers-custom/expected.js index 5fcfff19e2..ed40aae9df 100644 --- a/test/js/samples/event-handlers-custom/expected.js +++ b/test/js/samples/event-handlers-custom/expected.js @@ -51,7 +51,7 @@ function SvelteComponent ( options ) { this._handlers = Object.create( null ); - this._root = options._root; + this._root = options._root || this; this._yield = options._yield; this._torndown = false; diff --git a/test/js/samples/if-block-no-update/expected.js b/test/js/samples/if-block-no-update/expected.js index ef158af47d..2d7d9662e5 100644 --- a/test/js/samples/if-block-no-update/expected.js +++ b/test/js/samples/if-block-no-update/expected.js @@ -80,7 +80,7 @@ function SvelteComponent ( options ) { this._handlers = Object.create( null ); - this._root = options._root; + this._root = options._root || this; this._yield = options._yield; this._torndown = false; diff --git a/test/js/samples/if-block-simple/expected.js b/test/js/samples/if-block-simple/expected.js index c31e4ae914..cc2fe4d892 100644 --- a/test/js/samples/if-block-simple/expected.js +++ b/test/js/samples/if-block-simple/expected.js @@ -61,7 +61,7 @@ function SvelteComponent ( options ) { this._handlers = Object.create( null ); - this._root = options._root; + this._root = options._root || this; this._yield = options._yield; this._torndown = false; diff --git a/test/js/samples/use-elements-as-anchors/expected.js b/test/js/samples/use-elements-as-anchors/expected.js index 792dac264e..be71ab1d48 100644 --- a/test/js/samples/use-elements-as-anchors/expected.js +++ b/test/js/samples/use-elements-as-anchors/expected.js @@ -211,7 +211,7 @@ function SvelteComponent ( options ) { this._handlers = Object.create( null ); - this._root = options._root; + this._root = options._root || this; this._yield = options._yield; this._torndown = false;