提交 65009a03 编写于 作者: X xiongwei

Remove the @ts-nocheck field

Signed-off-by: Nxiongwei <xiongwei84@huawei.com>
上级 61b29d5a
...@@ -16,7 +16,7 @@ group("graphic") { ...@@ -16,7 +16,7 @@ group("graphic") {
testonly = true testonly = true
if (is_standard_system) { if (is_standard_system) {
deps = [ deps = [
"effectKit:EffectKitTest", #"effectKit:EffectKitTest",
"graphicColorSpace:ActsColorSpaceManagerTest", "graphicColorSpace:ActsColorSpaceManagerTest",
"graphicnapidrawingtest:ActsGraphicNapiDrawingTest", "graphicnapidrawingtest:ActsGraphicNapiDrawingTest",
"graphicnapitest:ActsGraphicNapiTest", "graphicnapitest:ActsGraphicNapiTest",
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* limitations under the License. * limitations under the License.
*/ */
// @ts-nocheck
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "deccjsunit/index" import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "deccjsunit/index"
import image from '@ohos.multimedia.image' import image from '@ohos.multimedia.image'
...@@ -38,8 +37,8 @@ export default function effectKitTest() { ...@@ -38,8 +37,8 @@ export default function effectKitTest() {
console.error(msgStr + "Napi size=" + value.size.width + " X " + value.size.height) console.error(msgStr + "Napi size=" + value.size.width + " X " + value.size.height)
}) })
imageSource.createPixelMap().then(pixelMap => { imageSource.createPixelMap().then(pixelMap => {
console.info(msgStr + "Napi create ColorPicker.start") console.info(msgStr + "Napi create createEffect.start")
let filter = effectKit.createEffect(pixelmap) let filter = effectKit.createEffect(pixelMap)
expect(filter != null).assertTrue() expect(filter != null).assertTrue()
done() done()
}).catch(ex => { }).catch(ex => {
...@@ -81,8 +80,8 @@ export default function effectKitTest() { ...@@ -81,8 +80,8 @@ export default function effectKitTest() {
console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height) console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height)
}) })
imageSource.createPixelMap().then(pixelMap => { imageSource.createPixelMap().then(pixelMap => {
console.info(msgStr + "Napi create ColorPicker.start") console.info(msgStr + "Napi create createEffect.start")
let headFilter = effectKit.createEffect(pixelmap) let headFilter = effectKit.createEffect(pixelMap)
if (headFilter == null) { if (headFilter == null) {
console.log("effectKitTest blur1 createEffect faild") console.log("effectKitTest blur1 createEffect faild")
expect(true).assertFail() expect(true).assertFail()
...@@ -115,8 +114,8 @@ export default function effectKitTest() { ...@@ -115,8 +114,8 @@ export default function effectKitTest() {
console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height) console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height)
}) })
imageSource.createPixelMap().then(pixelMap => { imageSource.createPixelMap().then(pixelMap => {
console.info(msgStr + "Napi create ColorPicker.start") console.info(msgStr + "Napi create createEffect.start")
let headFilter = effectKit.createEffect(pixelmap) let headFilter = effectKit.createEffect(pixelMap)
if (headFilter == null) { if (headFilter == null) {
console.log("effectKitTest blur2 createEffect faild") console.log("effectKitTest blur2 createEffect faild")
expect(true).assertFail() expect(true).assertFail()
...@@ -149,8 +148,8 @@ export default function effectKitTest() { ...@@ -149,8 +148,8 @@ export default function effectKitTest() {
console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height) console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height)
}) })
imageSource.createPixelMap().then(pixelMap => { imageSource.createPixelMap().then(pixelMap => {
console.info(msgStr + "Napi create ColorPicker.start") console.info(msgStr + "Napi create createEffect.start")
let headFilter = effectKit.createEffect(pixelmap) let headFilter = effectKit.createEffect(pixelMap)
if (headFilter == null) { if (headFilter == null) {
console.log("effectKitTest blur3 createEffect faild") console.log("effectKitTest blur3 createEffect faild")
expect(true).assertFail() expect(true).assertFail()
...@@ -183,8 +182,8 @@ export default function effectKitTest() { ...@@ -183,8 +182,8 @@ export default function effectKitTest() {
console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height) console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height)
}) })
imageSource.createPixelMap().then(pixelMap => { imageSource.createPixelMap().then(pixelMap => {
console.info(msgStr + "Napi create ColorPicker.start") console.info(msgStr + "Napi create createEffect.start")
let headFilter = effectKit.createEffect(pixelmap) let headFilter = effectKit.createEffect(pixelMap)
if (headFilter == null) { if (headFilter == null) {
console.log("effectKitTest brightness1 createEffect faild") console.log("effectKitTest brightness1 createEffect faild")
expect(true).assertFail() expect(true).assertFail()
...@@ -217,8 +216,8 @@ export default function effectKitTest() { ...@@ -217,8 +216,8 @@ export default function effectKitTest() {
console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height) console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height)
}) })
imageSource.createPixelMap().then(pixelMap => { imageSource.createPixelMap().then(pixelMap => {
console.info(msgStr + "Napi create ColorPicker.start") console.info(msgStr + "Napi create createEffect.start")
let headFilter = effectKit.createEffect(pixelmap) let headFilter = effectKit.createEffect(pixelMap)
if (headFilter == null) { if (headFilter == null) {
console.log("effectKitTest brightness2 createEffect faild") console.log("effectKitTest brightness2 createEffect faild")
expect(true).assertFail() expect(true).assertFail()
...@@ -251,8 +250,8 @@ export default function effectKitTest() { ...@@ -251,8 +250,8 @@ export default function effectKitTest() {
console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height) console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height)
}) })
imageSource.createPixelMap().then(pixelMap => { imageSource.createPixelMap().then(pixelMap => {
console.info(msgStr + "Napi create ColorPicker.start") console.info(msgStr + "Napi create createEffect.start")
let headFilter = effectKit.createEffect(pixelmap) let headFilter = effectKit.createEffect(pixelMap)
if (headFilter == null) { if (headFilter == null) {
console.log("effectKitTest brightness3 createEffect faild") console.log("effectKitTest brightness3 createEffect faild")
expect(true).assertFail() expect(true).assertFail()
...@@ -285,8 +284,8 @@ export default function effectKitTest() { ...@@ -285,8 +284,8 @@ export default function effectKitTest() {
console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height) console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height)
}) })
imageSource.createPixelMap().then(pixelMap => { imageSource.createPixelMap().then(pixelMap => {
console.info(msgStr + "Napi create ColorPicker.start") console.info(msgStr + "Napi create createEffect.start")
let headFilter = effectKit.createEffect(pixelmap) let headFilter = effectKit.createEffect(pixelMap)
if (headFilter == null) { if (headFilter == null) {
console.log("effectKitTest grayscale1 createEffect faild") console.log("effectKitTest grayscale1 createEffect faild")
expect(true).assertFail() expect(true).assertFail()
...@@ -319,8 +318,8 @@ export default function effectKitTest() { ...@@ -319,8 +318,8 @@ export default function effectKitTest() {
console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height) console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height)
}) })
imageSource.createPixelMap().then(pixelMap => { imageSource.createPixelMap().then(pixelMap => {
console.info(msgStr + "Napi create ColorPicker.start") console.info(msgStr + "Napi create createEffect.start")
let headFilter = effectKit.createEffect(pixelmap) let headFilter = effectKit.createEffect(pixelMap)
if (headFilter == null) { if (headFilter == null) {
console.log("effectKitTest getPixelMap1 createEffect faild") console.log("effectKitTest getPixelMap1 createEffect faild")
expect(true).assertFail() expect(true).assertFail()
...@@ -353,8 +352,8 @@ export default function effectKitTest() { ...@@ -353,8 +352,8 @@ export default function effectKitTest() {
console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height) console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height)
}) })
imageSource.createPixelMap().then(pixelMap => { imageSource.createPixelMap().then(pixelMap => {
console.info(msgStr + "Napi create ColorPicker.start") console.info(msgStr + "Napi create createEffect.start")
let headFilter = effectKit.createEffect(pixelmap) let headFilter = effectKit.createEffect(pixelMap)
if (headFilter == null) { if (headFilter == null) {
console.log("effectKitTest getPixelMap2 createEffect faild") console.log("effectKitTest getPixelMap2 createEffect faild")
expect(true).assertFail() expect(true).assertFail()
...@@ -387,8 +386,8 @@ export default function effectKitTest() { ...@@ -387,8 +386,8 @@ export default function effectKitTest() {
console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height) console.error(msgStr + "image size=" + value.size.width + " X " + value.size.height)
}) })
imageSource.createPixelMap().then(pixelMap => { imageSource.createPixelMap().then(pixelMap => {
console.info(msgStr + "Napi create ColorPicker.start") console.info(msgStr + "Napi create createEffect.start")
let headFilter = effectKit.createEffect(pixelmap) let headFilter = effectKit.createEffect(pixelMap)
if (headFilter == null) { if (headFilter == null) {
console.log("effectKitTest getPixelMap3 createEffect faild") console.log("effectKitTest getPixelMap3 createEffect faild")
expect(true).assertFail() expect(true).assertFail()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册