From 93f20c106a0da6479f7b5848b9838a7e84f332b7 Mon Sep 17 00:00:00 2001 From: Dmitriy Blinov Date: Fri, 7 Jun 2019 10:29:43 +0300 Subject: [PATCH] Added test case for attribute-class-array --- .../samples/attribute-class-array/_after.html | 1 + .../samples/attribute-class-array/_before.html | 1 + .../samples/attribute-class-array/_config.js | 15 +++++++++++++++ .../samples/attribute-class-array/main.svelte | 5 +++++ 4 files changed, 22 insertions(+) create mode 100644 test/hydration/samples/attribute-class-array/_after.html create mode 100644 test/hydration/samples/attribute-class-array/_before.html create mode 100644 test/hydration/samples/attribute-class-array/_config.js create mode 100644 test/hydration/samples/attribute-class-array/main.svelte diff --git a/test/hydration/samples/attribute-class-array/_after.html b/test/hydration/samples/attribute-class-array/_after.html new file mode 100644 index 0000000000..f9bfb245a7 --- /dev/null +++ b/test/hydration/samples/attribute-class-array/_after.html @@ -0,0 +1 @@ +
diff --git a/test/hydration/samples/attribute-class-array/_before.html b/test/hydration/samples/attribute-class-array/_before.html new file mode 100644 index 0000000000..f9bfb245a7 --- /dev/null +++ b/test/hydration/samples/attribute-class-array/_before.html @@ -0,0 +1 @@ +
diff --git a/test/hydration/samples/attribute-class-array/_config.js b/test/hydration/samples/attribute-class-array/_config.js new file mode 100644 index 0000000000..d9d220b6e5 --- /dev/null +++ b/test/hydration/samples/attribute-class-array/_config.js @@ -0,0 +1,15 @@ +export default { + snapshot(target) { + const div = target.querySelector('div'); + + return { + div + }; + }, + + test(assert, target, snapshot) { + const div = target.querySelector('div'); + + assert.equal(div, snapshot.div); + } +}; diff --git a/test/hydration/samples/attribute-class-array/main.svelte b/test/hydration/samples/attribute-class-array/main.svelte new file mode 100644 index 0000000000..3287ac6951 --- /dev/null +++ b/test/hydration/samples/attribute-class-array/main.svelte @@ -0,0 +1,5 @@ + + +