Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(678)

Unified Diff: third_party/WebKit/Source/core/testing/OriginTrialsTest.idl

Issue 2861673007: Add Origin Trial layout tests for IDL bindings (Closed)
Patch Set: Fix compile errors Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/testing/OriginTrialsTest.idl
diff --git a/third_party/WebKit/Source/core/testing/OriginTrialsTest.idl b/third_party/WebKit/Source/core/testing/OriginTrialsTest.idl
index 626b421470d71dfdf70059a372bd4c5d382c317d..27b0573dd89bd5e40197305569eeeed731575b10 100644
--- a/third_party/WebKit/Source/core/testing/OriginTrialsTest.idl
+++ b/third_party/WebKit/Source/core/testing/OriginTrialsTest.idl
@@ -5,16 +5,37 @@
interface OriginTrialsTest {
[OriginTrialEnabled=OriginTrialsSampleAPI] readonly attribute boolean normalAttribute;
[OriginTrialEnabled=OriginTrialsSampleAPI] static readonly attribute boolean staticAttribute;
+ [OriginTrialEnabled=OriginTrialsSampleAPI] boolean normalMethod();
+ [OriginTrialEnabled=OriginTrialsSampleAPI] static boolean staticMethod();
[OriginTrialEnabled=OriginTrialsSampleAPI] const unsigned short CONSTANT = 1;
// This attribute uses native code to test whether the trial is enabled,
// and throws an exception in JavaScript if it is not.
[CallWith=ScriptState, RaisesException] readonly attribute boolean throwingAttribute;
- // This attribute is available whether or not the trial is enabled.
+ // These are available whether or not the trial is enabled.
readonly attribute boolean unconditionalAttribute;
+ static readonly attribute boolean staticUnconditionalAttribute;
+ boolean unconditionalMethod();
+ static boolean staticUnconditionalMethod();
+ const unsigned short UNCONDITIONAL_CONSTANT = 99;
- // This attribute mirrors |unconditionalAttribute| above, but should only be
- // available if the trial is enabled.
- [OriginTrialEnabled=OriginTrialsSampleAPI, ImplementedAs=unconditionalAttribute] readonly attribute boolean bindingsTest;
+ // These are available whether or not the trial is enabled, but only in a
+ // secure context
+ // TODO(crbug.com/695123): Add [SecureContext] extended attribute when fixed
+ // to work with [OriginTrialEnabled]
+ readonly attribute boolean secureUnconditionalAttribute;
+ static readonly attribute boolean secureStaticUnconditionalAttribute;
+ boolean secureUnconditionalMethod();
+ static boolean secureStaticUnconditionalMethod();
+
+ // These are only available if the trial is enabled, as well as in secure
+ // context.
+ // TODO(crbug.com/695123): Add [SecureContext] extended attribute when fixed
+ // to work with [OriginTrialEnabled]
+ // e.g. [SecureContext, OriginTrialEnabled=OriginTrialsSampleAPI]
+ [OriginTrialEnabled=OriginTrialsSampleAPI] readonly attribute boolean secureAttribute;
+ [OriginTrialEnabled=OriginTrialsSampleAPI] static readonly attribute boolean secureStaticAttribute;
+ [OriginTrialEnabled=OriginTrialsSampleAPI] boolean secureMethod();
+ [OriginTrialEnabled=OriginTrialsSampleAPI] static boolean secureStaticMethod();
};

Powered by Google App Engine
This is Rietveld 408576698