diff --git a/test/runtime/samples/bitmask-overflow/_config.js b/test/runtime/samples/bitmask-overflow/_config.js index 7d550da056..7e9ad4d33b 100644 --- a/test/runtime/samples/bitmask-overflow/_config.js +++ b/test/runtime/samples/bitmask-overflow/_config.js @@ -44,6 +44,8 @@ export default { `, test({ assert, component, target }) { + component.reads = {}; + component._0 = 'a'; component._30 = 'b'; component._31 = 'c'; @@ -93,5 +95,13 @@ export default {

39

e

`); + + assert.deepEqual(component.reads, { + _0: 1, + _30: 1, + _31: 1, + _32: 1, + _40: 1 + }); } }; \ No newline at end of file diff --git a/test/runtime/samples/bitmask-overflow/main.svelte b/test/runtime/samples/bitmask-overflow/main.svelte index 20216786c2..c40c45e749 100644 --- a/test/runtime/samples/bitmask-overflow/main.svelte +++ b/test/runtime/samples/bitmask-overflow/main.svelte @@ -1,4 +1,6 @@ -

{_0}

-

{_1}

-

{_2}

-

{_3}

-

{_4}

-

{_5}

-

{_6}

-

{_7}

-

{_8}

-

{_9}

-

{_10}

-

{_11}

-

{_12}

-

{_13}

-

{_14}

-

{_15}

-

{_16}

-

{_17}

-

{_18}

-

{_19}

-

{_20}

-

{_21}

-

{_22}

-

{_23}

-

{_24}

-

{_25}

-

{_26}

-

{_27}

-

{_28}

-

{_29}

-

{_30}

-

{_31}

-

{_32}

-

{_33}

-

{_34}

-

{_35}

-

{_36}

-

{_37}

-

{_38}

-

{_39}

-

{_40}

\ No newline at end of file +

{read(_0, '_0')}

+

{read(_1, '_1')}

+

{read(_2, '_2')}

+

{read(_3, '_3')}

+

{read(_4, '_4')}

+

{read(_5, '_5')}

+

{read(_6, '_6')}

+

{read(_7, '_7')}

+

{read(_8, '_8')}

+

{read(_9, '_9')}

+

{read(_10, '_10')}

+

{read(_11, '_11')}

+

{read(_12, '_12')}

+

{read(_13, '_13')}

+

{read(_14, '_14')}

+

{read(_15, '_15')}

+

{read(_16, '_16')}

+

{read(_17, '_17')}

+

{read(_18, '_18')}

+

{read(_19, '_19')}

+

{read(_20, '_20')}

+

{read(_21, '_21')}

+

{read(_22, '_22')}

+

{read(_23, '_23')}

+

{read(_24, '_24')}

+

{read(_25, '_25')}

+

{read(_26, '_26')}

+

{read(_27, '_27')}

+

{read(_28, '_28')}

+

{read(_29, '_29')}

+

{read(_30, '_30')}

+

{read(_31, '_31')}

+

{read(_32, '_32')}

+

{read(_33, '_33')}

+

{read(_34, '_34')}

+

{read(_35, '_35')}

+

{read(_36, '_36')}

+

{read(_37, '_37')}

+

{read(_38, '_38')}

+

{read(_39, '_39')}

+

{read(_40, '_40')}

\ No newline at end of file