Index: third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/longtask-origin-trial-interfaces.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/longtask-origin-trial-interfaces.html b/third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/longtask-origin-trial-interfaces.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1711078de0323ad58c886773f729af0e9b92209d |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/longtask-origin-trial-interfaces.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<meta charset="utf-8"> |
+<!-- Generate token with the command: |
+generate_token.py http://127.0.0.1:8000 LongTaskObserver --expire-timestamp=2000000000 |
+--> |
+<meta http-equiv="origin-trial" content="AjpM/J+Oaon2wm/Ige8C0M00AhbG4U3Q1nAAmsNxmDTB/FTgFHfMYk2aVJozhE7m0dlJhozhaPh7C+GM6KD+QgYAAABYeyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIiwgImZlYXR1cmUiOiAiTG9uZ1Rhc2tPYnNlcnZlciIsICJleHBpcnkiOiAyMDAwMDAwMDAwfQ==" /> |
+<title>LongTaskObserver - interfaces exposed by origin trial</title> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script src="../../resources/origin-trials-helper.js"></script> |
+<script> |
+test(t => { |
+ var interfaces = |
+ OriginTrialsHelper.get_interface_names(window, ['PerformanceLongTaskTiming']); |
+ console.log('Interfaces in document\n' + interfaces); |
+}, "LongTaskObserver related interfaces in Origin-Trial enabled document."); |
+</script> |