diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt
index 4eaeae3f7..be720c151 100644
--- a/docs/changelog/7.x.x.txt
+++ b/docs/changelog/7.x.x.txt
@@ -11,6 +11,7 @@
- fixed #12309: Some child assets ignore visitor cache timeouts
- fixed possible values and default values on EMS submission.
- fixed #12312: Shop account plugin has unrendered macro
+ - fixed #12315: Remove yui tests from git repo.
7.10.23
- fixed #12225: Stock asset, multiple instances on a page
diff --git a/www/extras/yui/tests/animation/tests/animation.html b/www/extras/yui/tests/animation/tests/animation.html
deleted file mode 100644
index e4e479b69..000000000
--- a/www/extras/yui/tests/animation/tests/animation.html
+++ /dev/null
@@ -1,111 +0,0 @@
-
-
-
-Animation Test Suite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/www/extras/yui/tests/autocomplete/tests/autocomplete.html b/www/extras/yui/tests/autocomplete/tests/autocomplete.html
deleted file mode 100644
index ae20cc74f..000000000
--- a/www/extras/yui/tests/autocomplete/tests/autocomplete.html
+++ /dev/null
@@ -1,283 +0,0 @@
-
-
-YUI AutoComplete Tests
-
-
-
-
-
-
-
-
-
-
-
-
-
-AutoComplete Tests
-
-
-
-
-
diff --git a/www/extras/yui/tests/button/tests/button-activeelement-test.html b/www/extras/yui/tests/button/tests/button-activeelement-test.html
deleted file mode 100644
index 7ea17b8c4..000000000
--- a/www/extras/yui/tests/button/tests/button-activeelement-test.html
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-
-
-
- Button activeElement Test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Button activeElement Test
-Test case for bug 2528245 .
-
-Clicking on the text box when the Button's Menu is open should result in the Menu closing,
-the Button blurring and the text box being focused and becoming the activeElement.
-After mousing down on the text box, it should have a black outline and
-should fire key events.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/www/extras/yui/tests/button/tests/label-click-test.html b/www/extras/yui/tests/button/tests/label-click-test.html
deleted file mode 100644
index 9fe68b7c7..000000000
--- a/www/extras/yui/tests/button/tests/label-click-test.html
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-
-
-
- Button Click Label Test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Button Click Label Test
- Test case for bug 2527640 .
- Clicking on the <label> for each Button instance should both focus and check or uncheck the Button.
-
-
-
-
-
diff --git a/www/extras/yui/tests/button/tests/label-replace-test.html b/www/extras/yui/tests/button/tests/label-replace-test.html
deleted file mode 100644
index 6a4fa85b1..000000000
--- a/www/extras/yui/tests/button/tests/label-replace-test.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
-
- Button Label Replace Test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Button Label Replace Test
- Test case for bug 1897085 .
- The text label for each Button should be the text of its corresponding <label<.
-
-
-
-
-
diff --git a/www/extras/yui/tests/button/tests/preventoverlap.html b/www/extras/yui/tests/button/tests/preventoverlap.html
deleted file mode 100644
index a6c719ab1..000000000
--- a/www/extras/yui/tests/button/tests/preventoverlap.html
+++ /dev/null
@@ -1,144 +0,0 @@
-
-
-
-
- Button
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Menu Alignment Controls
-
- Menu Corner
-
-
- Button Corner
-
- tl
- tr
- bl
- br
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/www/extras/yui/tests/button/tests/selected-menuitem-change-test.html b/www/extras/yui/tests/button/tests/selected-menuitem-change-test.html
deleted file mode 100644
index 0d1e0891b..000000000
--- a/www/extras/yui/tests/button/tests/selected-menuitem-change-test.html
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
- YUI Button Test Case
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- YUI Button Test Case
-
- Test case for Bug 2527968 . Clicking on the Menu Button below should NOT result in an alert popping up when the Menu is made visible.
-
-
-
- Alabama
- Alaska
- Arizona
- Arkansas
- California
- Colorado
- Connecticut
- Delaware
- DC
- Florida
- Georgia
- Hawaii
- Idaho
- Illinois
- Indiana
- Iowa
- Kansas
- Kentucky
- Louisiana
- Maine
- Maryland
- Massachusetts
- Michigan
- Minnesota
- Mississippi
- Missouri
- Montana
- Nebraska
- Nevada
- New Hampshire
- New Jersey
- New Mexico
- New York
- North Carolina
- North Dakota
- Ohio
- Oklahoma
- Oregon
- Pennsylvania
- Puerto Rico
- Rhode Island
- South Carolina
- South Dakota
- Tennessee
- Texas
- Utah
- Vermont
- Virginia
- Washington
- West Virginia
- Wisconsin
- Wyoming
-
-
-
-
-
-
\ No newline at end of file
diff --git a/www/extras/yui/tests/button/tests/submit-twice-test.html b/www/extras/yui/tests/button/tests/submit-twice-test.html
deleted file mode 100644
index 6936df833..000000000
--- a/www/extras/yui/tests/button/tests/submit-twice-test.html
+++ /dev/null
@@ -1,130 +0,0 @@
-
-
-
-
- YUI Button + Connection Manager Test Page
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Log Data
-
-
-
Form Data
-
-
-
-
-
\ No newline at end of file
diff --git a/www/extras/yui/tests/button/tests/yui-prefix-test.html b/www/extras/yui/tests/button/tests/yui-prefix-test.html
deleted file mode 100644
index bcc93d53d..000000000
--- a/www/extras/yui/tests/button/tests/yui-prefix-test.html
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
- Button YUI Prefix Test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Yahoo!
-
-
-
-
-
-
-
-
-
-
-
- Radio 5
-
-
-
-
-
-
- Radio 6
-
-
-
-
-
-
- Radio 7
-
-
-
-
-
-
- Radio 8
-
-
-
-
-
-
-
-
-
-
- One
- Two
- Three
-
-
-
-
diff --git a/www/extras/yui/tests/calendar/tests/calendar.html b/www/extras/yui/tests/calendar/tests/calendar.html
deleted file mode 100644
index 3fd243405..000000000
--- a/www/extras/yui/tests/calendar/tests/calendar.html
+++ /dev/null
@@ -1,1336 +0,0 @@
-
-
-
- YUI Calendar Tests
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Calendar Tests
- The YUI Calendar Suite is split into 6 test cases:
-
-
-
- (runs default suite [API, CFG] if none selected)
-
-
diff --git a/www/extras/yui/tests/carousel/tests/AllTests.html b/www/extras/yui/tests/carousel/tests/AllTests.html
deleted file mode 100644
index 8ddfd25f6..000000000
--- a/www/extras/yui/tests/carousel/tests/AllTests.html
+++ /dev/null
@@ -1,80 +0,0 @@
-
-
-
- YUI Carousel Unit Tests
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- One
- Two
- Three
- Four
- Five
-
-
-
-
-
-
-
-
diff --git a/www/extras/yui/tests/carousel/tests/markupTests.js b/www/extras/yui/tests/carousel/tests/markupTests.js
deleted file mode 100644
index 9bbf64193..000000000
--- a/www/extras/yui/tests/carousel/tests/markupTests.js
+++ /dev/null
@@ -1,242 +0,0 @@
-(function () {
- var ArrayAssert = YAHOO.util.ArrayAssert,
- Assert = YAHOO.util.Assert,
- carousel, carousel3,
- carouselEl, carouselEl3,
- Dom = YAHOO.util.Dom,
- initFromMarkupTest,
- ObjectAssert = YAHOO.util.ObjectAssert;
-
- YAHOO.namespace("CarouselTests");
-
- initFromMarkupTest = new YAHOO.tool.TestCase({
- name: "Initialize from markup test",
-
- testCreation: function () {
- return Assert.areEqual(true,
- Dom.hasClass(carouselEl, "yui-carousel-element"));
- },
-
- testCreationFromUl: function () {
- return Assert.areEqual(true,
- Dom.hasClass(carouselEl3, "yui-carousel-element"));
- },
-
- testNumItems: function () {
- return Assert.areEqual(5, carousel.get("numItems"));
- },
-
- testNumItemsInTable: function () {
- return Assert.areEqual(5, carousel._itemsTable.numItems);
- },
-
- testitemsInTable: function () {
- return Assert.areEqual(5, carousel._itemsTable.items.length);
- },
-
- testgetElementForItem: function () {
- var actual = [], expected = [], i;
-
- for (i = 0; i < 5; i++) {
- expected.push(Dom.get("item" + (i+1)));
- actual.push(carousel.getElementForItem(i));
- }
- return ArrayAssert.itemsAreEqual(expected, actual);
- },
-
- testgetElementForItems: function () {
- var expected = [], i;
-
- for (i = 0; i < 5; i++) {
- expected.push(Dom.get("item" + (i+1)));
- }
- return ArrayAssert.itemsAreEqual(expected,
- carousel.getElementForItems());
- },
-
- testgetVisibleItems: function () {
- var expected = [], i;
-
- for (i = 0; i < 3; i++) {
- expected.push(Dom.get("item" + (i+1)));
- }
- return ArrayAssert.itemsAreEqual(expected,
- carousel.getVisibleItems());
- },
-
- testClearItems: function () {
- carousel.clearItems();
- return Assert.areEqual(0, carousel.get("numItems")) &&
- Assert.areEqual(0, carousel._itemsTable.numItems) &&
- ArrayAssert.itemsAreEqual([],
- carousel._itemsTable.items);
- },
-
- testAddItem: function () {
- carousel.addItem("Six");
- carousel.addItem("Seven", 0);
- return Assert.areEqual("Six", carousel.getItem(1).item) &&
- Assert.areEqual("Seven", carousel.getItem(0).item);
- },
-
- testAddItems: function () {
- carousel.addItems([["Eight",0],["Nine",0]]);
- return Assert.areEqual("Six", carousel.getItem(3).item) &&
- Assert.areEqual("Seven", carousel.getItem(2).item) &&
- Assert.areEqual("Eight", carousel.getItem(1).item) &&
- Assert.areEqual("Nine", carousel.getItem(0).item);
- },
-
- testgetItem: function () {
- var children = Dom.getChildrenBy(carouselEl,
- function (node) {
- return node.nodeName.toUpperCase() == "LI";
- }),
- els = [], i;
-
- for (i in children) {
- els.push(children[i]);
- }
-
- return ObjectAssert.propertiesAreEqual({ className: "",
- id: els[2].id,
- item: "Seven" },
- carousel.getItem(2));
- },
-
- testgetItems: function () {
- var children = Dom.getChildrenBy(carouselEl,
- function (node) {
- return node.nodeName.toUpperCase() == "LI";
- }),
- expected = [], i;
-
- function compareItems(a, b) {
- return a.className === b.className &&
- a.id === b.id && a.item === b.item;
- }
-
- for (i in children) {
- expected.push({ className: "", id: children[i].id,
- item: children[i].innerHTML });
- }
-
- return ArrayAssert.itemsAreEquivalent(expected,
- carousel.getItems(),
- compareItems);
- },
-
- testgetItemPositionById: function () {
- var children = Dom.getChildrenBy(carouselEl,
- function (node) {
- return node.nodeName.toUpperCase() == "LI";
- });
-
- return Assert.areEqual(2,
- carousel.getItemPositionById(children[2].id));
- },
-
- testremoveItem: function () {
- var children = Dom.getChildrenBy(carouselEl,
- function (node) {
- return node.nodeName.toUpperCase() == "LI";
- }),
- item;
-
- item = children[2];
- carousel.removeItem(2);
- return Assert.areEqual(null, Dom.get(item.id)) &&
- Assert.areEqual(3, carousel.get("numItems")) &&
- Assert.areEqual(3, carousel._itemsTable.numItems);
- },
-
- testScrollForward: function () {
- carousel.set("firstVisible", 0);
- carousel.addItems([["Ten",0],["Eleven",0],["Twelve",0]]);
- carousel.scrollForward();
- Assert.areEqual("-100px", carouselEl.style.left);
- },
-
- testScrollPageForward: function () {
- carousel.set("firstVisible", 0);
- carousel.scrollPageForward();
- Assert.areEqual("-300px", carouselEl.style.left);
- },
-
- testScrollBackward: function () {
- carousel.set("firstVisible", 3);
- carousel.scrollBackward();
- Assert.areEqual("-200px", carouselEl.style.left);
- },
-
- testScrollPageBackward: function () {
- carousel.set("firstVisible", 3);
- carousel.scrollPageBackward();
- Assert.areEqual("0px", carouselEl.style.left);
- },
-
- testScrollTo: function () {
- Dom.setStyle(carouselEl, "left", "");
- carousel.scrollTo(3);
- Assert.areEqual("-300px", carouselEl.style.left);
- },
-
- testSetNumVisible: function () {
- var contentEl = carouselEl.parentNode,
- num = carousel.get("numItems");
-
- function isSameWidth(el, w) {
- return parseInt(el.offsetWidth, 10) == w;
- }
-
- if (carousel.get("numVisible") != 3 ||
- !isSameWidth(contentEl, 300)) {
- return Assert.fail("numVisible should be 3 by default");
- }
- carousel.set("numVisible", 1);
- if (carousel.get("numVisible") != 1 ||
- !isSameWidth(contentEl, 100)) {
- return Assert.fail("numVisible should be 1 by default");
- }
- carousel.set("numVisible", num);
- if (carousel.get("numVisible") != num ||
- !isSameWidth(contentEl, num * 100)) {
- return Assert.fail("numVisible should have been " + num);
- }
- carousel.set("numVisible", 1);
- if (carousel.get("numVisible") != 1 ||
- !isSameWidth(contentEl, 100)) {
- return Assert.fail("numVisible should have been 1");
- }
- carousel.set("numVisible", 3);
- return Assert.areEqual(3, carousel.get("numVisible")) &&
- Assert.areEqual(true, areSameWidth(contentEl, 300));
- }
- });
-
- YAHOO.CarouselTests.markupTests = new YAHOO.tool.TestSuite({
- name: "Carousel (from Markup) Tests",
-
- setUp: function () {
- carousel = new YAHOO.widget.Carousel("container");
- carouselEl = Dom.get("carousel");
- carousel.render();
- carousel3 = new YAHOO.widget.Carousel("container3", {
- carouselEl: "UL" });
- carouselEl3 = Dom.get("carousel3");
- carousel3.render();
- },
-
- tearDown : function () {
- delete carousel;
- }
- });
-
- YAHOO.CarouselTests.markupTests.add(initFromMarkupTest);
-})();
-/*
-;; Local variables: **
-;; mode: js2 **
-;; indent-tabs-mode: nil **
-;; End: **
-*/
diff --git a/www/extras/yui/tests/carousel/tests/protectedMethodTests.js b/www/extras/yui/tests/carousel/tests/protectedMethodTests.js
deleted file mode 100644
index 5e41f435e..000000000
--- a/www/extras/yui/tests/carousel/tests/protectedMethodTests.js
+++ /dev/null
@@ -1,63 +0,0 @@
-(function () {
- var ArrayAssert = YAHOO.util.ArrayAssert,
- Assert = YAHOO.util.Assert,
- carousel,
- protectedMethods,
- ObjectAssert = YAHOO.util.ObjectAssert;
-
- YAHOO.namespace("CarouselTests");
-
- protectedMethods = new YAHOO.tool.TestCase({
- testGetValidIndex: function () {
- carousel.set("numItems", 9);
- Assert.areEqual(0, carousel._getValidIndex(0),
- "_getValidIndex(0) should have returned 0");
- Assert.areEqual(3, carousel._getValidIndex(3),
- "_getValidIndex(3) should have returned 3");
- Assert.areEqual(6, carousel._getValidIndex(6),
- "_getValidIndex(6) should have returned 6");
- Assert.areEqual(8, carousel._getValidIndex(9),
- "_getValidIndex(9) should have returned 8");
- Assert.areEqual(0, carousel._getValidIndex(-3),
- "_getValidIndex(-3) should have returned 0");
-
- carousel.set("numItems", 8);
- carousel.set("isCircular", true);
- },
-
- testGetValidIndexForCircularCarousel: function () {
- carousel.set("numItems", 8);
- carousel.set("isCircular", true);
- Assert.areEqual(0, carousel._getValidIndex(0),
- "_getValidIndex(0) should have returned 0");
- Assert.areEqual(3, carousel._getValidIndex(3),
- "_getValidIndex(3) should have returned 3");
- Assert.areEqual(6, carousel._getValidIndex(6),
- "_getValidIndex(6) should have returned 6");
- Assert.areEqual(0, carousel._getValidIndex(9),
- "_getValidIndex(9) should have returned 0");
- Assert.areEqual(6, carousel._getValidIndex(-3),
- "_getValidIndex(-3) should have returned 6");
- }
- });
-
- YAHOO.CarouselTests.protectedMethodTests = new YAHOO.tool.TestSuite({
- name: "Carousel (protected methods) Tests",
-
- setUp: function () {
- carousel = new YAHOO.widget.Carousel("container5");
- },
-
- tearDown : function () {
- delete carousel;
- }
- });
-
- YAHOO.CarouselTests.protectedMethodTests.add(protectedMethods);
-})();
-/*
-;; Local variables: **
-;; mode: js2 **
-;; indent-tabs-mode: nil **
-;; End: **
-*/
diff --git a/www/extras/yui/tests/carousel/tests/scriptTests.js b/www/extras/yui/tests/carousel/tests/scriptTests.js
deleted file mode 100644
index 0ec211503..000000000
--- a/www/extras/yui/tests/carousel/tests/scriptTests.js
+++ /dev/null
@@ -1,285 +0,0 @@
-(function () {
- var ArrayAssert = YAHOO.util.ArrayAssert,
- Assert = YAHOO.util.Assert,
- carousel, carousel4,
- carouselEl, carouselEl4,
- Dom = YAHOO.util.Dom,
- initFromScriptTest,
- ObjectAssert = YAHOO.util.ObjectAssert;
-
- YAHOO.namespace("CarouselTests");
-
- initFromScriptTest = new YAHOO.tool.TestCase({
- name: "Initialize from script test",
-
- testCreation: function () {
- return Assert.areEqual(true,
- Dom.hasClass(carouselEl, "yui-carousel-element"));
- },
-
- testCreationFromUl: function () {
- return Assert.areEqual(true,
- Dom.hasClass(carouselEl4, "yui-carousel-element"));
- },
-
- testNumItems: function () {
- return Assert.areEqual(4, carousel.get("numItems"));
- },
-
- testNumItemsInTable: function () {
- return Assert.areEqual(4, carousel._itemsTable.numItems);
- },
-
- testitemsInTable: function () {
- return Assert.areEqual(4, carousel._itemsTable.items.length);
- },
-
- testgetElementForItem: function () {
- var actual = [], expected = [], i, items;
-
- items = Dom.getChildrenBy(carouselEl, function (node) {
- return node.nodeName.toUpperCase() == "LI";
- });
- if (!items || items.length != 4) {
- Assert.fail();
- }
-
- for (i = 0; i < items.length; i++) {
- actual.push(carousel.getElementForItem(i));
- expected.push(items[i]);
- }
-
- return ArrayAssert.itemsAreEqual(expected, actual);
- },
-
- testgetElementForItems: function () {
- var expected = [], i, items;
-
- items = Dom.getChildrenBy(carouselEl, function (node) {
- return node.nodeName.toUpperCase() == "LI";
- });
- if (!items || items.length != 4) {
- Assert.fail();
- }
-
- for (i in items) {
- if (items.hasOwnProperty(i)) {
- expected.push(items[i]);
- }
- }
-
- return ArrayAssert.itemsAreEqual(expected,
- carousel.getElementForItems());
- },
-
- testgetVisibleItems: function () {
- var expected = [], i, j, items;
-
- items = Dom.getChildrenBy(carouselEl, function (node) {
- return node.nodeName.toUpperCase() == "LI";
- });
- if (!items || items.length != 4) {
- Assert.fail();
- }
-
- j = 0;
- for (i in items) {
- j++;
- if (j > 3) {
- break;
- }
- if (items.hasOwnProperty(i)) {
- expected.push(items[i]);
- }
- }
-
- return ArrayAssert.itemsAreEqual(expected,
- carousel.getVisibleItems());
- },
-
- testClearItems: function () {
- carousel.clearItems();
- return Assert.areEqual(0, carousel.get("numItems")) &&
- Assert.areEqual(0, carousel._itemsTable.numItems) &&
- ArrayAssert.itemsAreEqual([],
- carousel._itemsTable.items);
- },
-
- testAddItem: function () {
- carousel.addItem("Six");
- carousel.addItem("Seven", 0);
- return Assert.areEqual("Six", carousel.getItem(1).item) &&
- Assert.areEqual("Seven", carousel.getItem(0).item);
- },
-
- testAddItems: function () {
- carousel.addItems([["Eight",0],["Nine",0]]);
- return Assert.areEqual("Six", carousel.getItem(3).item) &&
- Assert.areEqual("Seven", carousel.getItem(2).item) &&
- Assert.areEqual("Eight", carousel.getItem(1).item) &&
- Assert.areEqual("Nine", carousel.getItem(0).item);
- },
-
- testgetItem: function () {
- var children = Dom.getChildrenBy(carouselEl,
- function (node) {
- return node.nodeName.toUpperCase() == "LI";
- }),
- els = [], i;
-
- for (i in children) {
- els.push(children[i]);
- }
-
- return ObjectAssert.propertiesAreEqual({ className: "",
- id: els[2].id,
- item: "Seven" },
- carousel.getItem(2));
- },
-
- testgetItems: function () {
- var children = Dom.getChildrenBy(carouselEl,
- function (node) {
- return node.nodeName.toUpperCase() == "LI";
- }),
- expected = [], i;
-
- function compareItems(a, b) {
- return a.className === b.className &&
- a.id === b.id && a.item === b.item;
- }
-
- for (i in children) {
- expected.push({ className: "", id: children[i].id,
- item: children[i].innerHTML });
- }
-
- return ArrayAssert.itemsAreEquivalent(expected,
- carousel.getItems(),
- compareItems);
- },
-
- testgetItemPositionById: function () {
- var children = Dom.getChildrenBy(carouselEl,
- function (node) {
- return node.nodeName.toUpperCase() == "LI";
- });
-
- return Assert.areEqual(2,
- carousel.getItemPositionById(children[2].id));
- },
-
- testremoveItem: function () {
- var children = Dom.getChildrenBy(carouselEl,
- function (node) {
- return node.nodeName.toUpperCase() == "LI";
- }),
- item;
-
- item = children[2];
- carousel.removeItem(2);
- return Assert.areEqual(null, Dom.get(item.id)) &&
- Assert.areEqual(3, carousel.get("numItems")) &&
- Assert.areEqual(3, carousel._itemsTable.numItems);
- },
-
- testScrollForward: function () {
- carousel.addItems([["Ten",0],["Eleven",0],["Twelve",0]]);
- carousel.scrollForward();
- Assert.areEqual("-100px", carouselEl.style.left);
- },
-
- testScrollPageForward: function () {
- carousel.set("firstVisible", 0);
- carousel.scrollPageForward();
- Assert.areEqual("-300px", carouselEl.style.left);
- },
-
- testScrollBackward: function () {
- carousel.set("firstVisible", 3);
- carousel.scrollBackward();
- Assert.areEqual("-200px", carouselEl.style.left);
- },
-
- testScrollPageBackward: function () {
- carousel.set("firstVisible", 3);
- carousel.scrollPageBackward();
- Assert.areEqual("0px", carouselEl.style.left);
- },
-
- testScrollTo: function () {
- Dom.setStyle(carouselEl, "left", "");
- carousel.scrollTo(3);
- Assert.areEqual("-300px", carouselEl.style.left);
- },
-
- testSetNumVisible: function () {
- var contentEl = carouselEl.parentNode,
- num = carousel.get("numItems");
-
- function isSameWidth(el, w) {
- return parseInt(Dom.getStyle(el, "width"), 10) == w;
- }
-
- if (carousel.get("numVisible") != 3 ||
- !isSameWidth(contentEl, 300)) {
- return Assert.fail("numVisible should be 3 by default");
- }
- carousel.set("numVisible", 1);
- if (carousel.get("numVisible") != 1 ||
- !isSameWidth(contentEl, 100)) {
- return Assert.fail("numVisible should be 1 by default");
- }
- carousel.set("numVisible", num);
- if (carousel.get("numVisible") != num ||
- !isSameWidth(contentEl, num * 100)) {
- return Assert.fail("numVisible should have been " + num);
- }
- carousel.set("numVisible", 1);
- if (carousel.get("numVisible") != 1 ||
- !isSameWidth(contentEl, 100)) {
- return Assert.fail("numVisible should have been 1");
- }
- carousel.set("numVisible", 3);
- return Assert.areEqual(3, carousel.get("numVisible")) &&
- Assert.areEqual(true, areSameWidth(carouselEl, 300));
- }
- });
-
- YAHOO.CarouselTests.scriptTests = new YAHOO.tool.TestSuite({
- name: "Carousel (from Script) Tests",
-
- setUp: function () {
- var items;
-
- carousel = new YAHOO.widget.Carousel("container2");
- carousel.addItems([["One"], ["Two"], ["Three"], ["Four"]]);
- carousel.render();
- items = Dom.getElementsByClassName("yui-carousel-element",
- "OL", carousel.get("element"));
- if (YAHOO.lang.isArray(items) && items.length == 1) {
- carouselEl = items[0];
- }
- carousel4 = new YAHOO.widget.Carousel("container4", {
- carouselEl: "UL" });
- carousel4.render();
- items = Dom.getElementsByClassName("yui-carousel-element",
- "UL", carousel4.get("element"));
- if (YAHOO.lang.isArray(items) && items.length == 1) {
- carouselEl4 = items[0];
- }
- },
-
- tearDown : function () {
- delete carousel;
- }
- });
-
- YAHOO.CarouselTests.scriptTests.add(initFromScriptTest);
-})();
-/*
-;; Local variables: **
-;; mode: js2 **
-;; indent-tabs-mode: nil **
-;; End: **
-*/
diff --git a/www/extras/yui/tests/colorpicker/tests/colorpicker.html b/www/extras/yui/tests/colorpicker/tests/colorpicker.html
deleted file mode 100644
index 350d5ea71..000000000
--- a/www/extras/yui/tests/colorpicker/tests/colorpicker.html
+++ /dev/null
@@ -1,167 +0,0 @@
-
-
-
-Slider/ColorPicker Test Suite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/www/extras/yui/tests/common/tests/YUI.html b/www/extras/yui/tests/common/tests/YUI.html
deleted file mode 100644
index 08b43f4e0..000000000
--- a/www/extras/yui/tests/common/tests/YUI.html
+++ /dev/null
@@ -1,103 +0,0 @@
-
-
-
- YUI Library Master Test Page
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-YUI Library Master Test Page
-
-
-
-
-
-
diff --git a/www/extras/yui/tests/connection/tests/setForm.html b/www/extras/yui/tests/connection/tests/setForm.html
deleted file mode 100644
index 3eeffdf4f..000000000
--- a/www/extras/yui/tests/connection/tests/setForm.html
+++ /dev/null
@@ -1,635 +0,0 @@
-
-
-
- Test Page
-
-
-
-
-
-
-
-Tests
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/www/extras/yui/tests/connection/tests/submitReporter.php b/www/extras/yui/tests/connection/tests/submitReporter.php
deleted file mode 100644
index f884cbe14..000000000
--- a/www/extras/yui/tests/connection/tests/submitReporter.php
+++ /dev/null
@@ -1,8 +0,0 @@
- $_POST,
- GET => $_GET
-)));
-?>
diff --git a/www/extras/yui/tests/container/tests/config.html b/www/extras/yui/tests/container/tests/config.html
deleted file mode 100644
index 44b67ebeb..000000000
--- a/www/extras/yui/tests/container/tests/config.html
+++ /dev/null
@@ -1,243 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/www/extras/yui/tests/container/tests/module.html b/www/extras/yui/tests/container/tests/module.html
deleted file mode 100644
index 3e2d4067e..000000000
--- a/www/extras/yui/tests/container/tests/module.html
+++ /dev/null
@@ -1,443 +0,0 @@
-
-
-
-
- YAHOO.widget.Module Tests
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
The body of the module1
-
-
-
-
diff --git a/www/extras/yui/tests/cookie/tests/cookie.html b/www/extras/yui/tests/cookie/tests/cookie.html
deleted file mode 100644
index 3891cd6fa..000000000
--- a/www/extras/yui/tests/cookie/tests/cookie.html
+++ /dev/null
@@ -1,1701 +0,0 @@
-
-
-cookie tests
-
-
-
-
-
-
-
-
-
-
-cookie tests
-
-
-
-
diff --git a/www/extras/yui/tests/datasource/tests/datasource.html b/www/extras/yui/tests/datasource/tests/datasource.html
deleted file mode 100644
index 7becdb573..000000000
--- a/www/extras/yui/tests/datasource/tests/datasource.html
+++ /dev/null
@@ -1,687 +0,0 @@
-
-
-YUI DataSource Tests
-
-
-
-
-
-
-DataSource Tests
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/www/extras/yui/tests/datasource/tests/date.php b/www/extras/yui/tests/datasource/tests/date.php
deleted file mode 100644
index bfebf0228..000000000
--- a/www/extras/yui/tests/datasource/tests/date.php
+++ /dev/null
@@ -1,306 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-Testing: (
-
-)
-
- format US English UK English French Canadian French Swiss French German Swiss German Hindi Hangul
- PHP Javascript PHP Javascript PHP Javascript PHP Javascript PHP Javascript PHP Javascript PHP Javascript PHP Javascript PHP Javascript
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- array(),
- "A" => array(),
- "b" => array(),
- "B" => array(),
- "c" => "%Y %m %d (%a) %r",
- "p" => array(),
- "P" => array(),
- "r" => "%p %I %M %S %p %Z",
- "x" => "%Y %m %d",
- "X" => "%H %M %S"
-);
-$lc['c'] = strftime("%c");
-$lc['r'] = strftime("%r");
-$lc['x'] = strftime("%X");
-$lc['X'] = strftime("%X");
-for($i=6; $i<13; $i++)
-{
- $d = strtotime("2008/01/$i");
- $lc['a'][] = strftime("%a", $d);
- $lc['A'][] = strftime("%A", $d);
-}
-for($i=1; $i<13; $i++)
-{
- $d = strtotime("2008/$i/1");
- $lc['b'][] = strftime("%b", $d);
- $lc['B'][] = strftime("%B", $d);
-}
-
-$d = strtotime("2008/01/01 10:00:00");
-$lc['p'][] = strftime("%p", $d);
-$lc['P'][] = strftime("%p", $d);
-$d = strtotime("2008/01/01 22:00:00");
-$lc['p'][] = strftime("%p", $d);
-$lc['P'][] = strftime("%p", $d);
-
-echo "";
-?>
-
-
diff --git a/www/extras/yui/tests/datasource/tests/php/proxy_ylocal.php b/www/extras/yui/tests/datasource/tests/php/proxy_ylocal.php
deleted file mode 100644
index c80bb8aaf..000000000
--- a/www/extras/yui/tests/datasource/tests/php/proxy_ylocal.php
+++ /dev/null
@@ -1,45 +0,0 @@
- $value) {
- if(($key == "output") && ($value == "json")) {
- $type = "application/json";
- }
- $query .= urlencode($key)."=".urlencode($value)."&";
-}
-
-foreach ($_POST as $key => $value) {
- if(($key == "output") && ($value == "json")) {
- $type = "application/json";
- }
- $query .= $key."=".$value."&";
-}
-$query .= "appid=YahooDemo";
-$url = PATH.$query;
-
-
-// Open the Curl session
-$session = curl_init($url);
-
-// Don't return HTTP headers. Do return the contents of the call
-curl_setopt($session, CURLOPT_HEADER, false);
-curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
-
-// Make the call
-$response = curl_exec($session);
-
-header("Content-Type: ".$type);
-echo $response;
-curl_close($session);
-
-?>
diff --git a/www/extras/yui/tests/datasource/tests/php/xhr_table.php b/www/extras/yui/tests/datasource/tests/php/xhr_table.php
deleted file mode 100644
index 160983e0a..000000000
--- a/www/extras/yui/tests/datasource/tests/php/xhr_table.php
+++ /dev/null
@@ -1,49 +0,0 @@
- 0) {
- $rows = $_GET['rows'];
-}
-
-// How many columns
-if(strlen($_GET['cols']) > 0) {
- $cols = $_GET['cols'];
-}
-
-// Return the data
-returnMarkup($rows, $cols);
-
-function returnMarkup($rows, $cols) {
- // start the table
- $markup = "";
-
- // build the thead
- for($i=0; $i<$cols; $i++) {
- $markup = $markup."header ".$i." ";
- }
- $markup = $markup." ";
-
- // build the tbody
- for($j=0; $j<$rows; $j++) {
- $markup = $markup."";
- for($i=0; $i<$cols; $i++) {
- $markup = $markup."data cell ".$j."-".$i." ";
- }
- $markup = $markup." ";
- }
- // end the table
- $markup = $markup."
";
-
- echo $markup;
-}
-?>
diff --git a/www/extras/yui/tests/datasource/tests/xmlparsing.html b/www/extras/yui/tests/datasource/tests/xmlparsing.html
deleted file mode 100644
index 9286173c4..000000000
--- a/www/extras/yui/tests/datasource/tests/xmlparsing.html
+++ /dev/null
@@ -1,121 +0,0 @@
-
-
-
-
-Test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/www/extras/yui/tests/datatable/tests/2099844.html b/www/extras/yui/tests/datatable/tests/2099844.html
deleted file mode 100644
index 26c5f3ddd..000000000
--- a/www/extras/yui/tests/datatable/tests/2099844.html
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
-
- Test Page
-
-
-
-
-
-
-
-Tests
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/www/extras/yui/tests/datatable/tests/datatable.html b/www/extras/yui/tests/datatable/tests/datatable.html
deleted file mode 100644
index 72807c6b6..000000000
--- a/www/extras/yui/tests/datatable/tests/datatable.html
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-YUI DataTable Tests
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-DataTable Tests
-
-
-
-
-
diff --git a/www/extras/yui/tests/datatable/tests/datatable/ColumnSet.js b/www/extras/yui/tests/datatable/tests/datatable/ColumnSet.js
deleted file mode 100644
index 16d92bf6b..000000000
--- a/www/extras/yui/tests/datatable/tests/datatable/ColumnSet.js
+++ /dev/null
@@ -1,152 +0,0 @@
-(function() {
- var gCount = -1;
-
- var Dom=YAHOO.util.Dom,
- Assert=YAHOO.util.Assert,
- ObjectAssert=YAHOO.util.ObjectAssert,
- ArrayAssert=YAHOO.util.ArrayAssert,
- DateAssert=YAHOO.util.DateAssert,
- UserAction=YAHOO.util.UserAction,
- TestCase = YAHOO.tool.TestCase,
- TestLogger = YAHOO.tool.TestLogger,
- TestRunner = YAHOO.tool.TestRunner,
- TestSuite = YAHOO.tool.TestSuite,
-
- DataSource = YAHOO.util.DataSource,
- DataTable = YAHOO.widget.DataTable,
- ColumnSet = YAHOO.widget.ColumnSet,
- RecordSet = YAHOO.widget.RecordSet;
-
- /**
- *
- *
- * Base DataTable test template. Sets up values for a DataTable instance.
- *
- *
- */
- var dtBaseTemplate = {
- name: "DataTable Base Tests",
-
- dsData: [
- {a:"0a",b:"0b",c:"0c"},
- {a:"1a",b:"1b",c:"1c"},
- {a:"2a",b:"2b",c:"2c"},
- {a:"3a",b:"3b",c:"3c"}
- ],
-
- dsConfig: {
- responseType:YAHOO.util.DataSource.TYPE_JSARRAY,
- responseSchema:{fields:["a","b","c"]}
- },
-
- columns: [{key:"a"},{key:"b"},{key:"c"}]
- };
-
- /**
- *
- *
- * Base DataTable test case.
- *
- *
- */
- function DataTableTestCase(template) {
- DataTableTestCase.superclass.constructor.call(this, template);
- };
- YAHOO.lang.extend(DataTableTestCase, TestCase);
-
- DataTableTestCase.prototype.setUp = function() {
- // Create container anew
- this.container = document.createElement("div");
- ///this.container.id = "testDTContainer"; // Is this necessary?
- document.body.appendChild(this.container);
-
- // Create DataSource anew
- this.datasource = new YAHOO.util.DataSource(this.dsData, this.dsConfig);
- };
-
- DataTableTestCase.prototype.tearDown = function() {
- // Destroy DataTable
- this.datatable.destroy();
- this.datatable = null;
-
- // Destroy container
- if(this.container !== null) {
- YAHOO.util.Event.purgeElement(this.container, true);
- document.body.removeChild(this.container);
- this.container = null;
- }
-
- // TODO: need a destroy method
- this.datasource = null;
- };
-
- DataTableTestCase.prototype.createInstance = function(oDT, oConfig) {
- oDT = oDT || DataTable;
- this.datatable = new oDT(this.container, this.columns, this.datasource, oConfig);
- gCount++;
- return this.datatable;
- };
-
- /**
- *
- *
- * Tests ColumnSet APIs.
- *
- *
- */
- var csColumnSetTemplate = YAHOO.lang.merge(dtBaseTemplate, {
- name: "DataTable ColumnSet Tests",
-
- testGetColumnSet: function() {
- var dt = this.createInstance();
- var cs = dt.getColumnSet();
-
- Assert.isInstanceOf(ColumnSet, cs, "Expected a ColumnSet");
- },
-
- testGetColumn: function() {
- var dt = this.createInstance();
- //dt.subscribe("initEvent", function() {
- var cs = dt.getColumnSet();
- var oColumn = cs.keys[0];
- var sColId = oColumn.getId();
-
- var el = dt.getTheadEl().rows[0].cells[0];
- var oTestColumn = dt.getColumn(el);
- Assert.areSame(oColumn, oTestColumn, "Expected to get Column by el reference");
-
- //TODO: get column by el reference child
-
- // Removed col elements
- //el = Dom.get(dt.getId()+"-col"+sColId);
- //oTestColumn = dt.getColumn(el);
- //Assert.areSame(oColumn, oTestColumn, "Expected to get Column by DOM ID");
-
- oTestColumn = dt.getColumn(0);
- Assert.areSame(oColumn, oTestColumn, "Expected to get Column by key index");
-
- oTestColumn = cs.getColumn("a");
- Assert.areSame(oColumn, oTestColumn, "Expected to get Column by key (ColumnSet method)");
-
- oTestColumn = cs.getColumnById(sColId);
- Assert.areSame(oColumn, oTestColumn, "Expected to get Column by Column ID (ColumnSet method)");
- //});
- }
-
- //TODO: More ColumnSet APIs
- });
- var csColumnSetTest = new DataTableTestCase(csColumnSetTemplate);
- /**
- *
- *
- * Runs tests.
- *
- *
- */
- YAHOO.util.Event.addListener(window, "load", function() {
- var columnsetsuite = new TestSuite("ColumnSet Test Suite");
- columnsetsuite.add(csColumnSetTest);
-
- TestRunner.add(columnsetsuite);
- });
-})();
diff --git a/www/extras/yui/tests/datatable/tests/datatable/DataTable.js b/www/extras/yui/tests/datatable/tests/datatable/DataTable.js
deleted file mode 100644
index 0df8ad8ee..000000000
--- a/www/extras/yui/tests/datatable/tests/datatable/DataTable.js
+++ /dev/null
@@ -1,1930 +0,0 @@
-(function() {
-
- var gCount = -1;
-
- var Dom=YAHOO.util.Dom,
- Assert=YAHOO.util.Assert,
- ObjectAssert=YAHOO.util.ObjectAssert,
- ArrayAssert=YAHOO.util.ArrayAssert,
- DateAssert=YAHOO.util.DateAssert,
- UserAction=YAHOO.util.UserAction,
- TestCase = YAHOO.tool.TestCase,
- TestLogger = YAHOO.tool.TestLogger,
- TestRunner = YAHOO.tool.TestRunner,
- TestSuite = YAHOO.tool.TestSuite,
-
- DataSource = YAHOO.util.DataSource,
- DataTable = YAHOO.widget.DataTable,
- ColumnSet = YAHOO.widget.ColumnSet,
- RecordSet = YAHOO.widget.RecordSet;
-
- /**
- *
- *
- * DataTable assertions.
- *
- *
- */
- var DataTableAssert = {
- areSameRow: function(elTr, oRecord, dt, msg) {
- Assert.areSame("tr", elTr.tagName.toLowerCase(), "Expected a TR element: " + msg);
- Assert.areSame(elTr.id, oRecord.getId(), "TR ID and Record IDs don't match: " + msg);
- },
-
- areSameCell: function(elTd, oRecord, oColumn, dt, msg) {
- Assert.areSame("td", elTd.tagName.toLowerCase(), "Expected a TD element: " + msg);
- Assert.areSame(elTd.cellIndex, oColumn.getKeyIndex(), "TR index and Column key index don't match: " + msg);
- this.areSameRow(elTd.parentNode, oRecord, dt, msg);
- }
- };
-
- /**
- *
- *
- * Base DataTable test case.
- *
- *
- */
- function DataTableTestCase(template) {
- DataTableTestCase.superclass.constructor.call(this, template);
- };
- YAHOO.lang.extend(DataTableTestCase, TestCase);
-
- DataTableTestCase.prototype.setUp = function() {
- // Create container anew
- this.container = document.createElement("div");
- document.body.appendChild(this.container);
-
- // Create DataSource anew
- this.datasource = new YAHOO.util.DataSource(this.dsData, this.dsConfig);
- };
-
- DataTableTestCase.prototype.tearDown = function() {
- // Destroy DataTable
- this.datatable.destroy();
- this.datatable = null;
-
- // Destroy container
- if(this.container !== null) {
- YAHOO.util.Event.purgeElement(this.container, true);
- document.body.removeChild(this.container);
- this.container = null;
- }
-
- // TODO: need a destroy method
- this.datasource = null;
- };
-
- DataTableTestCase.prototype.createInstance = function(oDT, oConfig) {
- oDT = oDT || DataTable;
- this.datatable = new oDT(this.container, this.columns, this.datasource, oConfig);
- gCount++;
- return this.datatable;
- };
-
- /**
- *
- *
- * Base DataTable test template. Sets up values for a DataTable instance.
- *
- *
- */
- var dtBaseTemplate = {
- name: "DataTable Base Tests",
-
- dsData: [
- {a:"0a",b:"0b",c:"0c"},
- {a:"1a",b:"1b",c:"1c"},
- {a:"2a",b:"2b",c:"2c"},
- {a:"3a",b:"3b",c:"3c"}
- ],
-
- dsConfig: {
- responseType:YAHOO.util.DataSource.TYPE_JSARRAY,
- responseSchema:{fields:["a","b","c"]}
- },
-
- columns: [{key:"a"},{key:"b"},{key:"c"}]
- };
-
- /**
- *
- *
- * Tests various construction use cases.
- *
- *
- */
- var dtConstructionTemplate = YAHOO.lang.merge(dtBaseTemplate, {
- name: "DataTable Construction Tests",
-
- testConstruction: function() {
- var dt = this.createInstance();
-
- Assert.isInstanceOf(DataTable, this.datatable, "Failed to create DataTable instance");
- Assert.isInstanceOf(ColumnSet, this.datatable.getColumnSet(), "Failed to create ColumnSet instance");
- Assert.isInstanceOf(RecordSet, this.datatable.getRecordSet(), "Failed to create RecordSet instance");
- Assert.areSame(this.dsData.length, this.datatable.getRecordSet().getLength(), "Unexpected RecordSet length");
-
- },
-
- testNestedHeaders: function() {
- //TODO
- var dt = this.createInstance();
- },
-
- testMultipleInstances: function() {
- var multiple = 3; // Set how many instances (total) to create for this test case
-
- // Create first instance
- var dt = this.createInstance();
- var cs = dt.getColumnSet();
- var oColumn = cs.keys[0];
-
- // Create more instances
- for(var i=1; i
-
- YUI DateMath Tests
-
-
-
-
-
-
-
-
-
-
-
-
-
- YAHOO.widget.DateMath Tests
-
-
-
-