diff --git a/src/tests/framework-tests/core/js/FluidIoCTests.js b/src/tests/framework-tests/core/js/FluidIoCTests.js index beeb7d0e8a..30522d3115 100644 --- a/src/tests/framework-tests/core/js/FluidIoCTests.js +++ b/src/tests/framework-tests/core/js/FluidIoCTests.js @@ -3640,8 +3640,6 @@ https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt jqUnit.assertEquals("Correctly resolved options from parent grade", 1, that.subComponent.options.parentOption); }); - - fluid.defaults("fluid.tests.dynamicInvoker", { gradeNames: ["autoInit", "fluid.littleComponent", "{that}.getDynamicInvoker"], invokers: { @@ -3933,4 +3931,30 @@ https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt jqUnit.assertUndefined("Listeners after destruction point should not be notified", that.noted); }); + // FLUID-5193: The matching form '*' in IoCSS doesn't match any subcomponents + fluid.defaults("fluid.tests.fluid5193root", { + gradeNames: ["fluid.littleComponent", "autoInit"], + components: { + sub1: { + type: "fluid.littleComponent" + }, + sub2: { + type: "fluid.littleComponent" + } + }, + userOption: 1, + distributeOptions: { + source: "{that}.options.userOption", + removeSource: true, + target: "{that > *}.options.userOption" + } + }); + + jqUnit.test("FLUID-5193 The matching form '*' in IoCSS doesn't match any subcomponents", function () { + var that = fluid.tests.fluid5193root(); + + jqUnit.assertEquals("The distributed options has been passed down to subComponent #1", 1, that.sub1.options.userOption); + jqUnit.assertEquals("The distributed options has been passed down to subComponent #2", 1, that.sub2.options.userOption); + }); + })(jQuery);