-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: load actual directives instead of using a local copy (#453)
- Loading branch information
Showing
15 changed files
with
579 additions
and
407 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
test-packages/openui5-snapshot-test/input-sdk/sap.f.dtsgenrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"forwardDeclarations": { | ||
"sap.f": [ | ||
{ | ||
"kind": "interface", | ||
"name": "sap.tnt.IToolHeader", | ||
"module": "sap/tnt/library", | ||
"export": "IToolHeader" | ||
} | ||
] | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
test-packages/openui5-snapshot-test/input-sdk/sap.m.dtsgenrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"forwardDeclarations": { | ||
"sap.m": [ | ||
{ | ||
"kind": "interface", | ||
"name": "sap.f.IDynamicPageStickyContent", | ||
"module": "sap/f/library", | ||
"export": "IDynamicPageStickyContent" | ||
}, | ||
{ | ||
"kind": "interface", | ||
"name": "sap.f.IShellBar", | ||
"module": "sap/f/library", | ||
"export": "IShellBar" | ||
} | ||
] | ||
}, | ||
"namespacesToInterfaces": { | ||
"InstanceManager": true, | ||
"URLHelper": true | ||
} | ||
} |
249 changes: 249 additions & 0 deletions
249
test-packages/openui5-snapshot-test/input-sdk/sap.ui.core.dtsgenrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,249 @@ | ||
{ | ||
"namespacesToInterfaces": { | ||
"BusyIndicator": true, | ||
"RuleEngineOpaAssertions": true | ||
}, | ||
|
||
"badSymbols": [ | ||
|
||
/** | ||
* The followong namespaces don't exist at runtime. They're only documented | ||
* to document the relationship between module and implemented jQuery plugin. | ||
* | ||
* To avoid dtslint errors ('no-empty-interfaces'), they're suppressed | ||
* in the dtslint generation. | ||
*/ | ||
"module:sap/ui/dom/jquery/Aria", | ||
"module:sap/ui/dom/jquery/control", | ||
"module:sap/ui/dom/jquery/cursorPos", | ||
"module:sap/ui/dom/jquery/Focusable", | ||
"module:sap/ui/dom/jquery/getSelectedText", | ||
"module:sap/ui/dom/jquery/hasTabIndex", | ||
"module:sap/ui/dom/jquery/parentByAttribute", | ||
"module:sap/ui/dom/jquery/rect", | ||
"module:sap/ui/dom/jquery/rectContains", | ||
"module:sap/ui/dom/jquery/scrollLeftRTL", | ||
"module:sap/ui/dom/jquery/scrollRightRTL", | ||
"module:sap/ui/dom/jquery/Selection", | ||
"module:sap/ui/dom/jquery/Selectors", | ||
"module:sap/ui/dom/jquery/selectText", | ||
"module:sap/ui/dom/jquery/zIndex" | ||
], | ||
|
||
"typeTyposMap": { | ||
"jQuery": "Object", | ||
"jQuery.Event": "Object", | ||
"jQuery.promise": "Object", | ||
|
||
"DomNode": "Element", | ||
"DOMNode": "Element", | ||
"DOMRef": "Element", | ||
"DomRef": "Element", | ||
"domRef": "Element", | ||
"DOMElement": "Element", | ||
|
||
"Generator": "any" | ||
}, | ||
|
||
"overlays": { | ||
"sap.ui.core": [ | ||
{ | ||
"name": "sap.ui.core.UIArea", | ||
"methods": [ | ||
{ | ||
"name": "getId", | ||
"returnValue": { | ||
"type": "string" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "sap.ui.core.format.DateFormat.DateTimeWithTimezone", | ||
"methods": [ | ||
{ | ||
"name": "parse", | ||
"static": true, | ||
"returnValue": { | ||
"type": { | ||
"kind": "NativeTSTypeExpression", | ||
"type": "[Date|import('sap/ui/core/date/UI5Date').default|undefined, string|undefined]|null" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "sap.ui.core.ComponentContainer", | ||
"ui5-metadata": { | ||
"properties": [ | ||
/** | ||
* The following 4 empty objects are needed in order to correctly overwrite the 'type' | ||
* property of the 5th element within this array. This is due to the fact that arrays | ||
* are merged by merging the elements that appear at the same index and not handled as | ||
* a map. | ||
*/ | ||
{}, | ||
{}, | ||
{}, | ||
{}, | ||
{ | ||
"name": "settings", | ||
"type": "sap.ui.core.$ComponentSettings" | ||
} | ||
] | ||
}, | ||
"methods": [ | ||
{ | ||
"name": "getSettings", | ||
"returnValue": { | ||
"type": "sap.ui.core.$ComponentSettings" | ||
} | ||
}, | ||
{ | ||
"name": "setSettings", | ||
"parameters": [ | ||
{ | ||
"name": "oSettings", | ||
"type": "sap.ui.core.$ComponentSettings" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "sap.ui.core.Component", | ||
"methods": [ | ||
{ | ||
"name": "create", | ||
"static": true, | ||
"parameters": [ | ||
{ | ||
"name": "mOptions", | ||
"parameterProperties": { | ||
"settings": { | ||
"name": "settings", | ||
"type": "sap.ui.core.$ComponentSettings" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "createComponent", | ||
"parameters": [ | ||
{ | ||
"name": "vUsage", | ||
"parameterProperties": { | ||
"settings": { | ||
"name": "settings", | ||
"type": "sap.ui.core.$ComponentSettings" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "sap.ui.base.ManagedObject", | ||
"methods": [ | ||
{ | ||
"name": "applySettings", | ||
"parameters": [ | ||
{ | ||
"name": "mSettings", | ||
"type": "sap.ui.base.$ManagedObjectSettings" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "sap.ui.base.Object", | ||
"methods": [ | ||
{ | ||
"name": "isA", | ||
"returnValue": { | ||
"type": { | ||
"kind": "NativeTSTypeExpression", | ||
"type": "this is T" | ||
} | ||
}, | ||
"typeParameters": [ | ||
{ | ||
"name": "T", | ||
"type": "sap.ui.base.Object", | ||
"default": "sap.ui.base.Object" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "isA", | ||
"static": true, | ||
"returnValue": { | ||
"type": { | ||
"kind": "NativeTSTypeExpression", | ||
"type": "oObject is T" | ||
} | ||
}, | ||
"typeParameters": [ | ||
{ | ||
"name": "T", | ||
"type": "sap.ui.base.Object", | ||
"default": "sap.ui.base.Object" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "sap.ui.base.Event", | ||
"methods": [ | ||
{ | ||
"name": "getParameter", | ||
"typeParameters": [ | ||
{ | ||
"name": "ParamName", | ||
"type": { | ||
"kind": "NativeTSTypeExpression", | ||
"type": "keyof ParamsType" | ||
} | ||
} | ||
], | ||
"returnValue": { | ||
"type": { | ||
"kind": "NativeTSTypeExpression", | ||
"type": "ParamsType[ParamName]" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "sName", | ||
"type": "ParamName" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "sap.ui.test.Opa", | ||
"properties": [ | ||
{ | ||
"name": "and", | ||
"type": "Omit<this, \"and\">" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "sap.ui.test.Opa5", | ||
"properties": [ | ||
{ | ||
"name": "and", | ||
"type": "Omit<this, \"and\">" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
27 changes: 0 additions & 27 deletions
27
test-packages/openui5-snapshot-test/lib/directives/excluded-elements.js
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
test-packages/openui5-snapshot-test/lib/directives/index.js
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
test-packages/openui5-snapshot-test/lib/directives/namespaces-to-interfaces.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.