summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/shared-storage/resources/simple-module.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/shared-storage/resources/simple-module.js')
-rw-r--r--testing/web-platform/tests/shared-storage/resources/simple-module.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/web-platform/tests/shared-storage/resources/simple-module.js b/testing/web-platform/tests/shared-storage/resources/simple-module.js
index 620a3592f2..11b650811d 100644
--- a/testing/web-platform/tests/shared-storage/resources/simple-module.js
+++ b/testing/web-platform/tests/shared-storage/resources/simple-module.js
@@ -6,6 +6,10 @@ var globalVar = 0;
class TestURLSelectionOperation {
async run(urls, data) {
+ if (data && data.hasOwnProperty('setKey') && data.hasOwnProperty('setValue')) {
+ await sharedStorage.set(data['setKey'], data['setValue']);
+ }
+
if (data && data.hasOwnProperty('mockResult')) {
return data['mockResult'];
}