dom-base.html revision fdfbb58f76522ce41b2c8af7f0a9274dcf82cd4a
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<html>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<head>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<title>DOM Test Suite</title>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<script type="text/javascript" src="/build/yui/yui.js"></script>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<script type="text/javascript" src="dom-core-test.js"></script>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<script type="text/javascript" src="dom-class-test.js"></script>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<script type="text/javascript">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen DesaiYUI({
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai base: "/build/",
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai filter: 'raw',
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai combine: false,
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai useConsole: true
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}).use('console', 'test', 'dom-core-test', 'dom-class-test', function (Y) {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai //create the logger
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai var logger = new Y.Console({
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai height: '800px'
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai }).render();
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai //add the tests
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai /*
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai Y.Test.Runner.on("complete", function(){
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai var coverage = Y.Test.Runner.getCoverage(),
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai data = Y.Test.Runner.getCoverage(Y.Coverage.Format.JSON);
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai Y.DOM.byId("coverage-data").value = data;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai });
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai */
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai Y.Test.Runner.run();
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai});
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai</script>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<style>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desaih1, h2, h3, h4, h5, h6, p, ul, ol, li {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai Xmargin:0;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai Xpadding:0;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desaiform {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai width: 30em;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai#doc {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai border:5px solid #000;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai margin:10px;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai padding:10px;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai#hd {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai background:#ccc;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai#foo {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai float:left; /* required for getStyle test */
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai#ft {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai opacity: 0.75;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai.yui-skin-sam .yui-console-entry-cat {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai color: white;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai font-weight: bold;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai.yui-skin-sam .yui-console-entry-src,
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai.yui-skin-sam .yui-console-entry-time {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai display: none;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai.yui-skin-sam .yui-console-entry {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai.yui-skin-sam .yui-console-entry-pass .yui-console-entry-content {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai text-align:right;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai.yui-skin-sam .yui-console-entry-pass .yui-console-entry-cat {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai background-color: green;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai.yui-skin-sam .yui-console-entry-fail .yui-console-entry-cat {
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai background-color: red;
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai}
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai</style>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai</head>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<body class="yui3-skin-sam">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<div id="test-id"></div>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<div id="test-dupe-ids">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <span id="test-dupe-id"></span>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <div id="test-dupe-root">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <span id="test-dupe-id"></span>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <span id="test-dupe-id"></span>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai </div>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai</div>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<form id="test-names">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <input id="test-name-id1" name="test-name-id2">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <input id="test-name-id2" name="test-name-id1">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <input name="test-names">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <input name="id">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <input id="test-text-value" value="test value">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <input id="test-text-no-value">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <input id="test-text-empty-value" value="">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <label for="id" id="for-id"></label>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <input name="foo" id="id">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <textarea id="test-textarea-value" value="textarea value"></textarea>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <textarea id="test-textarea-no-value"></textarea>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <textarea id="test-textarea-text-value">textarea test</textarea>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <select id="test-select-value">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <option id="test-option-value" value="option value">option text</option>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <option id="test-option-value-text">option text</option>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <option id="test-option-empty-value-text" value="">empty value</option>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <option id="test-option-empty-value" value=""></option>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <option id="test-option-no-value"></option>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai </select>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <select id="test-select-no-value">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai </select>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <select id="test-select-text-value">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <option>option text</option>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai </select>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <select id="test-select-empty-value-text">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <option value="">option text</option>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai </select>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <select id="test-select-empty-value">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <option value=""></option>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai </select>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <button id="test-button-value" value="button value">button</button>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <button id="test-button-no-value"></button>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <button id="test-button-empty-value" value="">button</button>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <button id="test-button-text-value">button text</button>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai</form>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<iframe id="test-frame" src="test-frame.html"></iframe>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<div id="test-children">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai foo
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <span>bar</span>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai <span>baz</span>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai</div>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<div id="test-get-text">
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai foo<span>bar</span>baz
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai</div>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai<div id="test-element-by-axis">foo<div></div>bar<span></span>baz<em></em>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai</div>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai</body>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai</html>
aa3181942968bcffcfc221a75d8bdc38c4c19b4bSatyen Desai