本文整理汇总了TypeScript中@ephox/agar.RawAssertions.assertEq方法的典型用法代码示例。如果您正苦于以下问题:TypeScript RawAssertions.assertEq方法的具体用法?TypeScript RawAssertions.assertEq怎么用?TypeScript RawAssertions.assertEq使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@ephox/agar.RawAssertions
的用法示例。
在下文中一共展示了RawAssertions.assertEq方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
() => RawAssertions.assertEq('found element', true, true)
示例2: cBundleOp
const cAssertIndexBookmark = (expectedName, expectedIndex) => cBundleOp((input) => {
RawAssertions.assertEq('Should be an index bookmark', true, isIndexBookmark(input.bookmark));
RawAssertions.assertEq('Should be expected name', expectedName, input.bookmark.name);
RawAssertions.assertEq('Should be expected index', expectedIndex, input.bookmark.index);
});
示例3:
return Waiter.sTryUntil('Did not find a blobimage', Step.sync(function () {
RawAssertions.assertEq('Should be one blob image', true, editor.dom.select('img[src^=blob]').length === 1);
}), 10, 3000);
示例4:
Step.sync(() => RawAssertions.assertEq('should still have a collapsed rng', true, editor.selection.isCollapsed()))
示例5:
Step.sync(() => RawAssertions.assertEq('dict should now have hello', ['hello'], dict))
示例6:
return Step.sync(function () {
RawAssertions.assertEq('Internal property should be equal', expectedData.internal, lastPostProcessEvent.internal);
RawAssertions.assertEq('Content property should be equal', expectedData.content, lastPostProcessEvent.node.innerHTML);
});
示例7: function
const testHtmlToData = function (html, expected) {
const actual = HtmlToData.htmlToData([], html);
RawAssertions.assertEq('Assert equal', expected, actual);
};