From ea7bc9fc5a32f93525c22d2f0a08c2c33743d0c5 Mon Sep 17 00:00:00 2001
From: windy <1374721899@qq.com>
Date: Fri, 6 Dec 2019 17:23:37 +0800
Subject: [PATCH] revert: test
---
.../platform/web/jquery/__test__/fn.test.js | 64 -------------------
1 file changed, 64 deletions(-)
delete mode 100644 src/core/platform/web/jquery/__test__/fn.test.js
diff --git a/src/core/platform/web/jquery/__test__/fn.test.js b/src/core/platform/web/jquery/__test__/fn.test.js
deleted file mode 100644
index 6c23271fd..000000000
--- a/src/core/platform/web/jquery/__test__/fn.test.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * @author windy
- * @version 2.0
- * Created by windy on 2019/12/6
- */
-
-describe("标红test", function () {
-
- /**
- * test_author_windy
- */
- it("无多音字标红", function () {
- var a = BI.Test.createWidget({
- type: "bi.layout",
- });
- a.element.__textKeywordMarked__("无多音字", "w");
- expect(a.element.html()).to.equal("无多音字");
- a.destroy();
- });
-
- /**
- * test_author_windy
- */
- it("含有多音字标红", function () {
- var a = BI.Test.createWidget({
- type: "bi.layout",
- });
- a.element.__textKeywordMarked__("长期协议", "z");
- expect(a.element.html()).to.equal("长期协议");
- a.element.__textKeywordMarked__("长期协议", "c");
- expect(a.element.html()).to.equal("长期协议");
- a.destroy();
- });
-
- /**
- * test_author_windy
- */
- it("多音字错位标红", function () {
- var a = BI.Test.createWidget({
- type: "bi.layout",
- });
- a.element.__textKeywordMarked__("呵呵呵", "h");
- expect(a.element.html()).to.equal("呵呵呵");
- a.element.__textKeywordMarked__("呵呵呵", "hh");
- expect(a.element.html()).to.equal("呵呵呵");
- a.element.__textKeywordMarked__("呵呵呵", "hhh");
- expect(a.element.html()).to.equal("呵呵呵");
- a.destroy();
- });
-
- /**
- * test_author_windy
- */
- it("原文和拼音都匹配标红", function () {
- var a = BI.Test.createWidget({
- type: "bi.layout",
- });
- a.element.__textKeywordMarked__("啊a", "a");
- expect(a.element.html()).to.equal("啊a");
- a.element.__textKeywordMarked__("a啊", "a");
- expect(a.element.html()).to.equal("a啊");
- a.destroy();
- });
-});
\ No newline at end of file