提交 76c4b98b 编写于 作者: F fupengfei001

fupengfei6@huawei.com

Signed-off-by: Nfupengfei001 <fupengfei6@huawei.com>
上级 cc6ba44a
......@@ -58,8 +58,6 @@ import { mockBatteryStatistics } from './ohos_batteryStatistics'
import { mockIntl } from './ohos_intl'
import { mockI18N } from './ohos_i18n'
import { mockRpc } from './ohos_rpc'
import { mockWebgl } from './webgl/webgl'
import { mockWebgl2 } from './webgl/webgl2'
import { mockProcess } from './ohos_process'
import { mockUrl } from './ohos_url'
import { mockHiAppEvent } from './ohos_hiAppEvent'
......@@ -386,10 +384,6 @@ export function mockRequireNapiFun() {
return mockBatteryStatistics();
case "rpc":
return mockRpc();
case "webgl":
return mockWebgl();
case "webgl2":
return mockWebgl2();
case "process":
return mockProcess();
case "url":
......
......@@ -34,8 +34,6 @@ import { FragBlockInterface,
import Vm from '../main/model';
import { CSS_INHERITANCE } from '../main/app/bundle';
import {interceptCallback} from '../main/manage/event/callbackIntercept';
import {mockWebgl} from '../main/extend/systemplugin/napi/webgl/webgl';
import {mockWebgl2} from '../main/extend/systemplugin/napi/webgl/webgl2';
import { VmOptions } from '../main/model/vmOptions';
/**
* Element is a basic class to describe a tree node in vdom.
......@@ -83,11 +81,6 @@ class Element extends Node {
if (taskCenter) {
// support aceapp callback style
args = interceptCallback(args);
if (args[0] === 'webgl') {
return mockWebgl();
} else if (args[0] === 'webgl2') {
return mockWebgl2();
}
const ret = taskCenter.send('component', {
ref: this.ref,
component: type,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册