提交 0a9745b2 编写于 作者: Y yanglifeng1217

<modified>

Signed-off-by: Nyanglifeng1217 <yanglifeng5@huawei.com>
上级 52acd1f4
......@@ -386,7 +386,7 @@ export default function PreferencesSyncTest() {
*/
it('SUB_DDM_Preferences_removePreferencesFromCacheSync_0100', 0, async function (done) {
console.log("SUB_DDM_Preferences_removePreferencesFromCacheSync_0100 begin.");
mPreferences = await dataPreferences.getPreferences(context, NAME);
mPreferences = await data_preferences.getPreferences(context, NAME);
await mPreferences.clearSync();
await mPreferences.putSync(KEY_TEST_STRING_ELEMENT, 'test')
await mPreferences.getSync(KEY_TEST_STRING_ELEMENT, "defaultvalue")
......@@ -396,7 +396,7 @@ export default function PreferencesSyncTest() {
expect().assertFail();
}
console.log("flush done.");
await mPreferences.removePreferencesFromCacheSync(context, NAME);
await data_preferences.removePreferencesFromCacheSync(context, NAME);
let value = mPreferences.getSync(KEY_TEST_STRING_ELEMENT, "defaultvalue")
console.log("SUB_DDM_Preferences_removePreferencesFromCacheSync_0100 end." + value);
expect('test').assertEqual(value);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册