From 319423959b86c604b98ef14e8982d9e1d5d28477 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 16 Jul 2021 13:33:45 -0700 Subject: [PATCH] Adds a serializer test suite - project cereal (#5034) * Setup basic architecture for tests * Attribute tests * Easy field tests added * Work on tests * Work on tests * Work on tests * Add mutation tests * Fixup ID tests * Add more mutator tests * Fixup lint and typos * Uncomment tests * Use test helpers * Small PR comments * Use test helpers for setup and teardown * Add TODOs and fixup types * Fix types * Actually fix types --- tests/deps.mocha.js | 1 + tests/mocha/index.html | 3 + tests/mocha/serializer_test.js | 1764 ++++++++++++++++++++++++++++++++ 3 files changed, 1768 insertions(+) create mode 100644 tests/mocha/serializer_test.js diff --git a/tests/deps.mocha.js b/tests/deps.mocha.js index 27e032d61..85a06ac1a 100644 --- a/tests/deps.mocha.js +++ b/tests/deps.mocha.js @@ -337,6 +337,7 @@ goog.addDependency('../../tests/mocha/procedures_test.js', ['Blockly.test.proced goog.addDependency('../../tests/mocha/procedures_test_helpers.js', ['Blockly.test.procedureHelpers'], [], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../tests/mocha/registry_test.js', ['Blockly.test.registry'], ['Blockly.test.helpers'], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../tests/mocha/run_mocha_tests_in_browser.js', [], [], {'lang': 'es8'}); +goog.addDependency('../../tests/mocha/serializer_test.js', ['Blockly.test.serialization'], ['Blockly.test.helpers'], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../tests/mocha/shortcut_registry_test.js', ['Blockly.test.shortcutRegistry'], ['Blockly.test.helpers'], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../tests/mocha/test_helpers.js', ['Blockly.test.helpers'], ['Blockly.utils.KeyCodes'], {'lang': 'es6', 'module': 'goog'}); goog.addDependency('../../tests/mocha/theme_test.js', ['Blockly.test.theme'], ['Blockly.test.helpers'], {'lang': 'es6', 'module': 'goog'}); diff --git a/tests/mocha/index.html b/tests/mocha/index.html index ff4661314..81ba4476e 100644 --- a/tests/mocha/index.html +++ b/tests/mocha/index.html @@ -26,6 +26,8 @@ + +