summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/shared-storage/resources/set-key-value.https.html
blob: ba0a24ceb2368b8e69e8f36fcf409efae7c414c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<script src=/resources/testharness.js></script>
<script src=/shared-storage/resources/util.js></script>
<script src=/fenced-frame/resources/utils.js></script>
<body>
<script>

async function init() {
    const [outerKey] = parseKeylist();
    const parsedData = parseExpectedKeyAndValueData();
    await sharedStorage.set(parsedData['expectedKey'],
                            parsedData['expectedValue']);
    await writeValueToServer(outerKey, "set_key_value_loaded");
}

init();
</script>
</body>
</html>