redux-sessionstorage-simple
Version:
Save and load Redux state to and from SessionStorage.
33 lines (32 loc) • 2.21 kB
HTML
<html>
<head>
<title>Tests for redux-sessionstorage-simple</title>
<style>
body {color: #888;}
p {margin: 3px;}
.true {background-color: green; color: white; font-weight: bold; padding: 1px;}
.false {background-color: red; color: white; font-weight: bold; padding: 1px;}
</style>
</head>
<body>
<div id="testResults">
<h1>Tests for <u>redux-sessionstorage-simple</u></h1>
<p>Tests are run through your browser because SessionStorage needs to exist in the environment.</p>
<br/>
<p><strong>Test 0</strong>: SessionStorage, are you there? <span id="test0"></span></p>
<p><strong>Test 1</strong>: Save and load <u>entire</u> Redux state tree: <span id="test1"></span></p>
<p><strong>Test 2</strong>: Save and load <u>part</u> of Redux state tree: <span id="test2"></span></p>
<p><strong>Test 3</strong>: Save and load <u>entire</u> Redux state tree under a specified <u>namespace</u>: <span id="test3"></span></p>
<p><strong>Test 4</strong>: Save and load <u>part</u> of Redux state tree under a specified <u>namespace</u>: <span id="test4"></span></p>
<p><strong>Test 5</strong>: Save and load <u>entire</u> Redux state tree under a specified <u>namespace</u> with a specific <u>namespaceSeparator</u>: <span id="test5"></span></p>
<p><strong>Test 6</strong>: Save and load <u>part</u> of Redux state tree under a specified <u>namespace</u> with a specific <u>namespaceSeparator</u>: <span id="test6"></span></p>
<p><strong>Test 7</strong>: Clear Redux state tree data saved with the <u>default namespace</u>: <span id="test7"></span></p>
<p><strong>Test 8</strong>: Clear Redux state tree data saved with a <u>specific namespace</u>: <span id="test8"></span></p>
<p><strong>Test 9</strong>: Save Redux state with <u>debouncing</u>: <span id="test9"></span></p>
<p><strong>Test 10</strong>: Save and load specific properties of a <u>part</u> of Redux state tree under a specified <u>namespace</u>: <span id="test10"></span></p>
<p><strong>Test 11</strong>: Save and load entire Redux state tree except the states we <u>ignore</u>: <span id="test11"></span></p>
</div>
<script src="test.js"></script>
</body>
</html>