提交 72807d71 编写于 作者: Z zzs110

api9修改

Signed-off-by: Nzzs110 <zhouzishuai@huawei.com>
上级 c1b5db06
...@@ -216,7 +216,7 @@ export default function pasteBoardTest(){ ...@@ -216,7 +216,7 @@ export default function pasteBoardTest(){
it('SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0100', 0, async function (done) { it('SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0100', 0, async function (done) {
console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0100 start") console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0100 start")
let pasteDataRecord = pasteboard.createRecord(pasteboard.MIMETYPE_TEXT_PLAIN,"valueType") let pasteDataRecord = pasteboard.createRecord(pasteboard.MIMETYPE_TEXT_PLAIN,"valueType")
std::string str = await pasteDataRecord.toPlainText(); var str = await pasteDataRecord.toPlainText();
expect(str).assertEqual("valueType") expect(str).assertEqual("valueType")
console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0100 end") console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0100 end")
done(); done();
...@@ -236,7 +236,7 @@ export default function pasteBoardTest(){ ...@@ -236,7 +236,7 @@ export default function pasteBoardTest(){
await image.createPixelMap(color, opt).then((pixelMap) => { await image.createPixelMap(color, opt).then((pixelMap) => {
pasteDataRecord = pasteboard.createRecord(pasteboard.MIMETYPE_PIXELMAP,pixelMap); pasteDataRecord = pasteboard.createRecord(pasteboard.MIMETYPE_PIXELMAP,pixelMap);
}) })
std::string str = await pasteDataRecord.toPlainText(); var str = await pasteDataRecord.toPlainText();
expect(str).assertEqual(""); expect(str).assertEqual("");
console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0200 end") console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0200 end")
done(); done();
...@@ -253,8 +253,8 @@ export default function pasteBoardTest(){ ...@@ -253,8 +253,8 @@ export default function pasteBoardTest(){
it('SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0300', 0, async function (done) { it('SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0300', 0, async function (done) {
console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0300 start") console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0300 start")
let pasteDataRecord = pasteboard.createRecord(pasteboard.MIMETYPE_TEXT_WANT,WANT) let pasteDataRecord = pasteboard.createRecord(pasteboard.MIMETYPE_TEXT_WANT,WANT)
std::string str = await pasteDataRecord.toPlainText(); var str = await pasteDataRecord.toPlainText();
expect(str).assertEqual("") expect(str).assertEqual("");
console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0300 end") console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0300 end")
done(); done();
}) })
...@@ -270,7 +270,7 @@ export default function pasteBoardTest(){ ...@@ -270,7 +270,7 @@ export default function pasteBoardTest(){
it('SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0400', 0, async function (done) { it('SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0400', 0, async function (done) {
console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0400 start") console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0400 start")
let pasteDataRecord = pasteboard.createRecord("ArrayBuffer",ARRAY_BUFFER) let pasteDataRecord = pasteboard.createRecord("ArrayBuffer",ARRAY_BUFFER)
std::string str = await pasteDataRecord.toPlainText(); var str = await pasteDataRecord.toPlainText();
expect(str).assertEqual("") expect(str).assertEqual("")
console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0400 end") console.info("SUB_PASTEBOARD_FUNCTION_ETS_TOPLAINTEXT_0400 end")
done(); done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册