From 2f5f68694f30fcde5c5e90521136f3d9719a28a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordi=20Lo=CC=81pez?= Date: Tue, 21 Jun 2016 19:12:35 +0200 Subject: [PATCH] Revert "Added `extension_for` tag tests to __builder test suite__" This reverts commit 551c463493da508a3ba5fa81b814b38dcaad59fb. --- tests/builder.js | 9 --------- tests/input/inherit/examplemodule.js | 29 ++++++++++++++-------------- 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/tests/builder.js b/tests/builder.js index 91acd8b2..3133aebe 100644 --- a/tests/builder.js +++ b/tests/builder.js @@ -161,15 +161,6 @@ suite.add(new YUITest.TestCase({ Assert.isObject(method.overwritten_from, 'Failed to find overwritten data'); }, item); }, - 'test: extension_for': function() { - var item = suite.data.classes['mywidget.SubWidget']; - Assert.isObject(item, 'Failed to parse class'); - suite.builder.renderClass(function (html, view, opts) { - var extension_for = opts.meta.extension_for; - Assert.isObject(extension_for, 'Failed to assign extension_for'); - Assert.areSame(1, extension_for.length, 'Failed to assign extension_for'); - }, item); - }, 'test: helper methods': function () { var item = suite.data.classes['mywidget.SuperWidget']; Assert.isObject(item, 'Failed to parse class'); diff --git a/tests/input/inherit/examplemodule.js b/tests/input/inherit/examplemodule.js index 37440115..8cf4ec3c 100644 --- a/tests/input/inherit/examplemodule.js +++ b/tests/input/inherit/examplemodule.js @@ -9,10 +9,10 @@ YUI.add('examplemodule', function (Y) { Y.namespace('mywidget'); - + /** * Superclass description.
This is a second line too. - * + * * @constructor * @class SuperWidget * @extends Widget @@ -23,15 +23,15 @@ YUI.add('examplemodule', function (Y) { * */ Y.mywidget.superwidget = Y.Base.create("mysuperwidget", Y.Widget, [], { - + /** * Supermethod description.
This is a second line. - * + * * @method myMethod * @async */ myMethod: function () {} - + /** * Overwritten method see {{#crossLink "mywidget.SuperWidget"}}{{/crossLink}} * also see {{#crossLink "mywidget.SuperWidget/myMethod"}}{{/crossLink}} @@ -83,37 +83,36 @@ YUI.add('examplemodule', function (Y) { * Override Event * @event init2 */ - + }, { - + }); - + /** * Subclass description. - * + * * @constructor * @namespace mywidget * @class SubWidget * @extends mywidget.SuperWidget - * @extensionfor mywidget.SuperWidget */ Y.mywidget.superwidget = Y.Base.create("mysuperwidget", Y.mywidget.superwidget, [], { - + /** * Submethod description. - * + * * @method myMethod * @param {boolean} d Foo */ myMethod: function () {} - + }, { - + }); /** * Subclass description. - * + * * @constructor * @namespace mywidget * @class SubWidget2