V8: kill usercontrol support, cleanup macros (#4329)

This commit is contained in:
Callum Whyte
2019-01-31 04:37:07 +11:00
committed by Sebastiaan Janssen
parent 74a1bb9123
commit 2036da5e84
27 changed files with 13 additions and 294 deletions

View File

@@ -108,34 +108,6 @@ describe('macro service tests', function () {
toBe("<?UMBRACO_MACRO macroAlias=\"myMacro\" />");
});
it('can generate syntax for webforms', function () {
var syntax = macroService.generateWebFormsSyntax({
macroAlias: "myMacro",
macroParamsDictionary: {
param1: "value1",
param2: "value2",
param3: "value3"
}
});
expect(syntax).
toBe("<umbraco:Macro param1=\"value1\" param2=\"value2\" param3=\"value3\" Alias=\"myMacro\" runat=\"server\"></umbraco:Macro>");
});
it('can generate syntax for webforms with no params', function () {
var syntax = macroService.generateWebFormsSyntax({
macroAlias: "myMacro",
macroParamsDictionary: {}
});
expect(syntax).
toBe("<umbraco:Macro Alias=\"myMacro\" runat=\"server\"></umbraco:Macro>");
});
it('can generate syntax for MVC', function () {
@@ -167,4 +139,4 @@ describe('macro service tests', function () {
});
});
});
});