var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
define(["require", "exports", "merge-options", "../base-config", "../wed-test-util"], function (require, exports, merge_options_1, globalConfig, wed_test_util_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    merge_options_1 = __importDefault(merge_options_1);
    globalConfig = __importStar(globalConfig);
    const options = {
        mode: {
            options: {
                hide_attributes: true,
            },
        },
    };
    describe("wed hides attributes:", () => {
        let setup;
        let editor;
        before(() => {
            setup = new wed_test_util_1.EditorSetup(`${wed_test_util_1.dataPath}/wed_test_data/source_converted.xml`, merge_options_1.default(globalConfig.config, options), document);
            ({ editor } = setup);
            return setup.init().then(() => {
                // tslint:disable-next-line:no-any
                editor.validator._validateUpTo(editor.dataRoot, -1);
            });
        });
        afterEach(() => {
            setup.reset();
        });
        after(() => {
            setup.restore();
            // tslint:disable-next-line:no-any
            editor = undefined;
        });
        // We don't put this with wed-validation-error-test because it is not
        // specifically checking the validation code but is an overall smoketest.
        it("is able to start", () => {
            return editor.firstValidationComplete;
        });
    });
});
//# sourceMappingURL=wed-hide-attributes-test.js.map