OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>InstalledApp - origin trial is enabled by script-added meta tag</title> |
| 4 <script src="../../resources/testharness.js"></script> |
| 5 <script src="../../resources/testharnessreport.js"></script> |
| 6 <script src="../../resources/origin-trials-helper.js"></script> |
| 7 <script> |
| 8 // Generate token with the command: |
| 9 // generate_token.py http://127.0.0.1:8000 InstalledApp --expire-timestamp=20000
00000 |
| 10 let token = "Akja9TlIC1gfGeeC9bkfQDkEVUWMgRRPCjxOhbdvY1hs7t5XnI4Nrfd8H0diidi6jrb
O6HCXLK0jfMPduTXUKQIAAABUeyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIiwgImZlYXR
1cmUiOiAiSW5zdGFsbGVkQXBwIiwgImV4cGlyeSI6IDIwMDAwMDAwMDB9"; |
| 11 |
| 12 let properties_to_check = {'Navigator': ['getInstalledRelatedApps']}; |
| 13 |
| 14 test(t => { |
| 15 OriginTrialsHelper.check_properties_missing(this, properties_to_check); |
| 16 }, "InstalledApp related properties is not on interfaces before adding trial tok
en via script."); |
| 17 |
| 18 OriginTrialsHelper.add_token(token); |
| 19 |
| 20 test(t => { |
| 21 OriginTrialsHelper.check_properties(this, properties_to_check); |
| 22 }, "InstalledApp related properties is on interfaces after adding trial token vi
a script."); |
| 23 </script> |
OLD | NEW |