Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
titoBouzout committed Oct 21, 2024
1 parent 5cfb7aa commit 53a895c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ var _tmpl$ = /*#__PURE__*/ _$template(`<my-element>`, true, false),
);
const template = (() => {
var _el$ = _tmpl$();
_el$.someAttr = name;
_el$.notprop = data;
_$setAttribute(_el$, "some-attr", name);
_$setAttribute(_el$, "notProp", data);
_$setAttribute(_el$, "my-attr", data);
_el$.someProp = data;
_el$._$owner = _$getOwner();
Expand All @@ -53,8 +53,8 @@ const template2 = (() => {
_v$2 = state.data,
_v$3 = state.data,
_v$4 = state.data;
_v$ !== _p$.e && (_el$2.someAttr = _p$.e = _v$);
_v$2 !== _p$.t && (_el$2.notprop = _p$.t = _v$2);
_v$ !== _p$.e && _$setAttribute(_el$2, "some-attr", (_p$.e = _v$));
_v$2 !== _p$.t && _$setAttribute(_el$2, "notProp", (_p$.t = _v$2));
_v$3 !== _p$.a && _$setAttribute(_el$2, "my-attr", (_p$.a = _v$3));
_v$4 !== _p$.o && (_el$2.someProp = _p$.o = _v$4);
return _p$;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ import { effect as _$effect } from "r-dom";
import { getNextElement as _$getNextElement } from "r-dom";
import { getOwner as _$getOwner } from "r-dom";
import { setAttribute as _$setAttribute } from "r-dom";
import { setProperty as _$setProperty } from "r-dom";
var _tmpl$ = /*#__PURE__*/ _$template(`<my-element>`, true, false),
_tmpl$2 = /*#__PURE__*/ _$template(`<my-element><header slot=head>Title`, true, false),
_tmpl$3 = /*#__PURE__*/ _$template(`<slot name=head>`),
_tmpl$4 = /*#__PURE__*/ _$template(`<a is=my-element>`, true, false);
const template = (() => {
var _el$ = _$getNextElement(_tmpl$);
_$setProperty(_el$, "someAttr", name);
_$setProperty(_el$, "notprop", data);
_$setAttribute(_el$, "some-attr", name);
_$setAttribute(_el$, "notProp", data);
_$setAttribute(_el$, "my-attr", data);
_el$.someProp = data;
_el$._$owner = _$getOwner();
Expand All @@ -26,8 +25,8 @@ const template2 = (() => {
_v$2 = state.data,
_v$3 = state.data,
_v$4 = state.data;
_v$ !== _p$.e && _$setProperty(_el$2, "someAttr", (_p$.e = _v$));
_v$2 !== _p$.t && _$setProperty(_el$2, "notprop", (_p$.t = _v$2));
_v$ !== _p$.e && _$setAttribute(_el$2, "some-attr", (_p$.e = _v$));
_v$2 !== _p$.t && _$setAttribute(_el$2, "notProp", (_p$.t = _v$2));
_v$3 !== _p$.a && _$setAttribute(_el$2, "my-attr", (_p$.a = _v$3));
_v$4 !== _p$.o && (_el$2.someProp = _p$.o = _v$4);
return _p$;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ var _tmpl$ = /*#__PURE__*/ _$template(`<my-element>`, true, false),
_tmpl$4 = /*#__PURE__*/ _$template(`<a is=my-element>`, true, false);
const template = (() => {
var _el$ = _tmpl$();
_el$.someAttr = name;
_el$.notprop = data;
_$setAttribute(_el$, "some-attr", name);
_$setAttribute(_el$, "notProp", data);
_$setAttribute(_el$, "my-attr", data);
_el$.someProp = data;
_el$._$owner = _$getOwner();
Expand All @@ -24,8 +24,8 @@ const template2 = (() => {
_v$2 = state.data,
_v$3 = state.data,
_v$4 = state.data;
_v$ !== _p$.e && (_el$2.someAttr = _p$.e = _v$);
_v$2 !== _p$.t && (_el$2.notprop = _p$.t = _v$2);
_v$ !== _p$.e && _$setAttribute(_el$2, "some-attr", (_p$.e = _v$));
_v$2 !== _p$.t && _$setAttribute(_el$2, "notProp", (_p$.t = _v$2));
_v$3 !== _p$.a && _$setAttribute(_el$2, "my-attr", (_p$.a = _v$3));
_v$4 !== _p$.o && (_el$2.someProp = _p$.o = _v$4);
return _p$;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Child = props => {
"element",
(() => {
var _el$10 = _tmpl$4();
_$effect(() => _$setAttribute(_el$10, "backgroundcolor", s() ? "red" : "green"));
_$effect(() => _$setAttribute(_el$10, "backgroundColor", s() ? "red" : "green"));
return _el$10;
})()
)
Expand Down Expand Up @@ -94,7 +94,7 @@ const Child = props => {
(() => {
var _el$13 = _tmpl$4();
_$effect(() =>
_$setAttribute(_el$13, "backgroundcolor", s() ? "red" : "green")
_$setAttribute(_el$13, "backgroundColor", s() ? "red" : "green")
);
return _el$13;
})()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ var _tmpl$ = ["<my-element", "></my-element>"],
const template = _$ssr(
_tmpl$,
_$ssrAttribute("some-attr", _$escape(name, true), false) +
_$ssrAttribute("notprop", _$escape(data, true), false) +
_$ssrAttribute("notProp", _$escape(data, true), false) +
_$ssrAttribute("my-attr", _$escape(data, true), false)
);
const template2 = _$ssr(
_tmpl$,
_$ssrAttribute("some-attr", _$escape(state.name, true), false) +
_$ssrAttribute("notprop", _$escape(state.data, true), false) +
_$ssrAttribute("notProp", _$escape(state.data, true), false) +
_$ssrAttribute("my-attr", _$escape(state.data, true), false)
);
const template3 = _$ssr(_tmpl$2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ const template = _$ssr(
_tmpl$,
_$ssrHydrationKey() +
_$ssrAttribute("some-attr", _$escape(name, true), false) +
_$ssrAttribute("notprop", _$escape(data, true), false) +
_$ssrAttribute("notProp", _$escape(data, true), false) +
_$ssrAttribute("my-attr", _$escape(data, true), false)
);
const template2 = _$ssr(
_tmpl$,
_$ssrHydrationKey() +
_$ssrAttribute("some-attr", _$escape(state.name, true), false) +
_$ssrAttribute("notprop", _$escape(state.data, true), false) +
_$ssrAttribute("notProp", _$escape(state.data, true), false) +
_$ssrAttribute("my-attr", _$escape(state.data, true), false)
);
const template3 = _$ssr(_tmpl$2, _$ssrHydrationKey());
Expand Down

0 comments on commit 53a895c

Please sign in to comment.