3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp <meta http-equiv="content-type" content="text/html; charset=utf-8">
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp /*Supplemental: CSS for the YUI distribution*/
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp #custom-doc { width: 95%; min-width: 950px; }
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp #pagetitle {background-image: url(/assets/bg_hd.gif);}
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp padding:10px 10px 10px 10px;
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp <link rel="stylesheet" type="text/css" href="/build/cssfonts/fonts-min.css">
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp<script type="text/javascript" src="/build/yui/yui-min.js"></script>
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp allowRollup: false,
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min'
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp}).use('charts-legend', 'test', 'console', function (Y)
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp LegendTestTemplate = function(cfg, globalCfg)
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp LegendTestTemplate.superclass.constructor.apply(this);
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp for(i in globalCfg)
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp this[i] = globalCfg[i];
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp setUp: function() {
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp tearDown: function() {
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp var basicDataValues = [
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp {date:"5/1/2010", miscellaneous:2000, expenses:3700, revenue:2200},
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp {date:"5/2/2010", miscellaneous:50, expenses:9100, revenue:100},
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp {date:"5/3/2010", miscellaneous:400, expenses:1100, revenue:1500},
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp {date:"5/4/2010", miscellaneous:200, expenses:1900, revenue:2800},
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp {date:"5/5/2010", miscellaneous:5000, expenses:5000, revenue:2650}
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp topLegend = function()
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp position: "top",
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp hAlign: "center"
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp bottomLegend = function()
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp position: "bottom",
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp hAlign: "center"
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp leftLegend = function()
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp position: "left",
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp vAlign: "middle"
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp rightLegend = function()
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp position: "right",
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp vAlign: "middle"
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp testLegend = function()
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp var assert = Y.Assert,
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp legend = chart.get("legend");
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp testLegendPosition = function()
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp var assert = Y.Assert,
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp legend = chart.get("legend");
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp assert.areEqual(legend.get("position"), this.legendPosition);
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp testLegendItemsLength = function()
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp var assert = Y.Assert,
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp legend = chart.get("legend"),
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp chartSC = chart.get("seriesCollection"),
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp legendItems = legend.get("items");
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp testLegendItemsText = function()
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp var assert = Y.Assert,
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp legend = chart.get("legend"),
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp chartSC = chart.get("seriesCollection"),
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp legendItems = legend.get("items"),
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp assert.areEqual(chartSC[i].get("displayName"), legendItems.text);
3a0e3386da06b00e0461e54ce61efafa74ed0da0Tripp BottomLegendItemsLengthTest = new LegendTestTemplate({