V8: kill usercontrol support, cleanup macros (#4329)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
74a1bb9123
commit
2036da5e84
@@ -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 () {
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user