Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jul 25, 2017
1 parent 197c7e7 commit 9085c0a
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ function on(eventName, handler) {

function set(newState) {
this._set(assign({}, newState));
if (this._root._block) return;
this._root._block = true;
if (this._root._lock) return;
this._root._lock = true;
callAll(this._root._beforecreate);
callAll(this._root._oncreate);
callAll(this._root._aftercreate);
this._root._block = false;
this._root._lock = false;
}

function callAll(fns) {
Expand Down
6 changes: 3 additions & 3 deletions test/js/samples/computed-collapsed-if/expected-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ function on(eventName, handler) {

function set(newState) {
this._set(assign({}, newState));
if (this._root._block) return;
this._root._block = true;
if (this._root._lock) return;
this._root._lock = true;
callAll(this._root._beforecreate);
callAll(this._root._oncreate);
callAll(this._root._aftercreate);
this._root._block = false;
this._root._lock = false;
}

function callAll(fns) {
Expand Down
6 changes: 3 additions & 3 deletions test/js/samples/each-block-changed-check/expected-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ function on(eventName, handler) {

function set(newState) {
this._set(assign({}, newState));
if (this._root._block) return;
this._root._block = true;
if (this._root._lock) return;
this._root._lock = true;
callAll(this._root._beforecreate);
callAll(this._root._oncreate);
callAll(this._root._aftercreate);
this._root._block = false;
this._root._lock = false;
}

function callAll(fns) {
Expand Down
6 changes: 3 additions & 3 deletions test/js/samples/event-handlers-custom/expected-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ function on(eventName, handler) {

function set(newState) {
this._set(assign({}, newState));
if (this._root._block) return;
this._root._block = true;
if (this._root._lock) return;
this._root._lock = true;
callAll(this._root._beforecreate);
callAll(this._root._oncreate);
callAll(this._root._aftercreate);
this._root._block = false;
this._root._lock = false;
}

function callAll(fns) {
Expand Down
6 changes: 3 additions & 3 deletions test/js/samples/if-block-no-update/expected-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ function on(eventName, handler) {

function set(newState) {
this._set(assign({}, newState));
if (this._root._block) return;
this._root._block = true;
if (this._root._lock) return;
this._root._lock = true;
callAll(this._root._beforecreate);
callAll(this._root._oncreate);
callAll(this._root._aftercreate);
this._root._block = false;
this._root._lock = false;
}

function callAll(fns) {
Expand Down
6 changes: 3 additions & 3 deletions test/js/samples/if-block-simple/expected-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ function on(eventName, handler) {

function set(newState) {
this._set(assign({}, newState));
if (this._root._block) return;
this._root._block = true;
if (this._root._lock) return;
this._root._lock = true;
callAll(this._root._beforecreate);
callAll(this._root._oncreate);
callAll(this._root._aftercreate);
this._root._block = false;
this._root._lock = false;
}

function callAll(fns) {
Expand Down
10 changes: 5 additions & 5 deletions test/js/samples/non-imported-component/expected-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ function on(eventName, handler) {

function set(newState) {
this._set(assign({}, newState));
if (this._root._block) return;
this._root._block = true;
if (this._root._lock) return;
this._root._lock = true;
callAll(this._root._beforecreate);
callAll(this._root._oncreate);
callAll(this._root._aftercreate);
this._root._block = false;
this._root._lock = false;
}

function callAll(fns) {
Expand Down Expand Up @@ -198,11 +198,11 @@ function SvelteComponent ( options ) {
}

if ( !options._root ) {
this._block = true;
this._lock = true;
callAll(this._beforecreate);
callAll(this._oncreate);
callAll(this._aftercreate);
this._block = false;
this._lock = false;
}
}

Expand Down
4 changes: 2 additions & 2 deletions test/js/samples/non-imported-component/expected.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ function SvelteComponent ( options ) {
}

if ( !options._root ) {
this._block = true;
this._lock = true;
callAll(this._beforecreate);
callAll(this._oncreate);
callAll(this._aftercreate);
this._block = false;
this._lock = false;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ function on(eventName, handler) {

function set(newState) {
this._set(assign({}, newState));
if (this._root._block) return;
this._root._block = true;
if (this._root._lock) return;
this._root._lock = true;
callAll(this._root._beforecreate);
callAll(this._root._oncreate);
callAll(this._root._aftercreate);
this._root._block = false;
this._root._lock = false;
}

function callAll(fns) {
Expand Down
6 changes: 3 additions & 3 deletions test/js/samples/use-elements-as-anchors/expected-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ function on(eventName, handler) {

function set(newState) {
this._set(assign({}, newState));
if (this._root._block) return;
this._root._block = true;
if (this._root._lock) return;
this._root._lock = true;
callAll(this._root._beforecreate);
callAll(this._root._oncreate);
callAll(this._root._aftercreate);
this._root._block = false;
this._root._lock = false;
}

function callAll(fns) {
Expand Down

0 comments on commit 9085c0a

Please sign in to comment.