зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1279218 - Remove tests related to the applet tag; r=bz
MozReview-Commit-ID: FzzA5Qic4Uq --HG-- extra : rebase_source : 64206ee3e5073bafd822b23040fe6e24dda3463f
This commit is contained in:
Родитель
272a68d725
Коммит
ef8d138ba7
|
@ -262,7 +262,6 @@ support-files =
|
|||
[test_anonymousContent_insert.html]
|
||||
[test_anonymousContent_manipulate_content.html]
|
||||
[test_anonymousContent_style_csp.html]
|
||||
[test_applet_alternate_content.html]
|
||||
[test_appname_override.html]
|
||||
[test_async_setTimeout_stack.html]
|
||||
[test_async_setTimeout_stack_across_globals.html]
|
||||
|
|
|
@ -1,42 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=1200602
|
||||
-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test for Bug 1200602</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SpecialPowers.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1200602">Mozilla Bug 1200602</a>
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
|
||||
function test() {
|
||||
"use strict";
|
||||
|
||||
const objLC = SpecialPowers.Ci.nsIObjectLoadingContent;
|
||||
let obj = document.createElement("applet");
|
||||
obj.appendChild(document.createTextNode("alternate content"));
|
||||
document.body.appendChild(obj);
|
||||
|
||||
obj instanceof objLC;
|
||||
obj = SpecialPowers.wrap(obj);
|
||||
|
||||
// We expect this tag to simply go to alternate content, not get a
|
||||
// pluginProblem binding or fire any events.
|
||||
ok(obj.displayedType == objLC.TYPE_NULL, "expected null type");
|
||||
ok(obj.pluginFallbackType == objLC.PLUGIN_ALTERNATE,
|
||||
"expected alternate fallback mode");
|
||||
}
|
||||
|
||||
// Test all non-plugin types these tags can load to make sure none of them
|
||||
// trigger plugin-specific fallbacks when loaded with no URI
|
||||
test();
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
|
@ -194,7 +194,6 @@ support-files =
|
|||
|
||||
[test_a_text.html]
|
||||
[test_anchor_href_cache_invalidation.html]
|
||||
[test_applet_attributes_reflection.html]
|
||||
[test_base_attributes_reflection.html]
|
||||
[test_bug100533.html]
|
||||
[test_bug109445.html]
|
||||
|
|
|
@ -1,86 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Test for HTMLAppletElement attributes reflection</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript" src="reflect.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
</div>
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
|
||||
/** Test for HTMLAppletElement attributes reflection **/
|
||||
|
||||
// .align (String)
|
||||
reflectString({
|
||||
element: document.createElement("applet"),
|
||||
attribute: "align",
|
||||
});
|
||||
|
||||
// .alt (String)
|
||||
reflectString({
|
||||
element: document.createElement("applet"),
|
||||
attribute: "alt",
|
||||
});
|
||||
|
||||
// .archive (String)
|
||||
reflectString({
|
||||
element: document.createElement("applet"),
|
||||
attribute: "archive",
|
||||
});
|
||||
|
||||
// .code (String)
|
||||
reflectString({
|
||||
element: document.createElement("applet"),
|
||||
attribute: "code",
|
||||
});
|
||||
|
||||
// .codeBase (URL)
|
||||
reflectURL({
|
||||
element: document.createElement("applet"),
|
||||
attribute: "codeBase",
|
||||
});
|
||||
|
||||
// .height (String)
|
||||
reflectString({
|
||||
element: document.createElement("applet"),
|
||||
attribute: "height",
|
||||
});
|
||||
|
||||
// .hspace (unsigned int)
|
||||
reflectUnsignedInt({
|
||||
element: document.createElement("applet"),
|
||||
attribute: "hspace",
|
||||
});
|
||||
|
||||
// .name (String)
|
||||
reflectString({
|
||||
element: document.createElement("applet"),
|
||||
attribute: "name",
|
||||
});
|
||||
|
||||
// .object (URL)
|
||||
reflectURL({
|
||||
element: document.createElement("applet"),
|
||||
attribute: "object",
|
||||
});
|
||||
|
||||
// .vspace (unsigned int)
|
||||
reflectUnsignedInt({
|
||||
element: document.createElement("applet"),
|
||||
attribute: "vspace",
|
||||
});
|
||||
|
||||
// .width (String)
|
||||
reflectString({
|
||||
element: document.createElement("applet"),
|
||||
attribute: "width",
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
|
@ -79,7 +79,6 @@ objectIfaces2.push("nsIImageLoadingContent");
|
|||
/* List copy/pasted from nsHTMLTagList.h, with the second field modified to the
|
||||
correct classinfo (instead of the impl class) in the following cases:
|
||||
|
||||
applet
|
||||
base
|
||||
blockquote
|
||||
dir
|
||||
|
@ -99,7 +98,6 @@ HTML_TAG("a", "Anchor");
|
|||
HTML_TAG("abbr", "");
|
||||
HTML_TAG("acronym", "");
|
||||
HTML_TAG("address", "");
|
||||
HTML_TAG("applet", "Applet", [], objectIfaces);
|
||||
HTML_TAG("area", "Area");
|
||||
HTML_TAG("article", "");
|
||||
HTML_TAG("aside", "");
|
||||
|
|
|
@ -31,7 +31,7 @@ ok(document.img1 instanceof HTMLImageElement);
|
|||
isnot(document.form1, form);
|
||||
ok(document.form1 instanceof HTMLFormElement);
|
||||
isnot(document.applet1, applet);
|
||||
ok(document.applet1 instanceof HTMLAppletElement);
|
||||
ok(document.applet1 instanceof HTMLUnknownElement);
|
||||
isnot(document.embed1, embed);
|
||||
ok(document.embed1 instanceof HTMLEmbedElement);
|
||||
isnot(document.object1, object);
|
||||
|
|
|
@ -1,87 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Helper for test_bug738396.html</title>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Test that the plugin sees "good" in each of these cases -->
|
||||
<div id="codebasevis">
|
||||
<applet codebase="good" codebase="bad" ></applet>
|
||||
|
||||
<applet codebase="bad">
|
||||
<param name="codebase" value="good">
|
||||
</applet>
|
||||
|
||||
<applet codebase="bad">
|
||||
<param name="codebase" value="stillbad">
|
||||
<param name="codebase" value="good">
|
||||
</applet>
|
||||
|
||||
<applet>
|
||||
<param name="codebase" value="good">
|
||||
</applet>
|
||||
|
||||
<object type="application/x-java-test" codebase="good" codebase="bad"></object>
|
||||
|
||||
<object type="application/x-java-test" codebase="bad">
|
||||
<param name="codebase" value="good">
|
||||
</object>
|
||||
|
||||
<object type="application/x-java-test" codebase="bad">
|
||||
<param name="codebase" value="stillbad">
|
||||
<param name="codebase" value="good">
|
||||
</object>
|
||||
|
||||
<object type="application/x-java-test">
|
||||
<param name="codebase" value="good">
|
||||
</object>
|
||||
|
||||
<embed type="application/x-java-test" codebase="good" codebase="bad">
|
||||
</div>
|
||||
<div id="blockedcodebase">
|
||||
<!-- Test that none of these are allowed to load -->
|
||||
<applet codebase="file:///" codebase="notused"></applet>
|
||||
|
||||
<applet codebase="notused">
|
||||
<param name="codebase" value="file:///">
|
||||
</applet>
|
||||
|
||||
<applet codebase="notused">
|
||||
<param name="codebase" value="notused">
|
||||
<param name="codebase" value="file:///">
|
||||
</applet>
|
||||
|
||||
<applet>
|
||||
<param name="codebase" value="file:///">
|
||||
</applet>
|
||||
|
||||
<object type="application/x-java-test" codebase="file:///" codebase="notused"></object>
|
||||
|
||||
<object type="application/x-java-test" codebase="notused">
|
||||
<param name="codebase" value="file:///">
|
||||
</object>
|
||||
|
||||
<object type="application/x-java-test" codebase="notused">
|
||||
<param name="codebase" value="notused">
|
||||
<param name="codebase" value="file:///">
|
||||
</object>
|
||||
|
||||
<object type="application/x-java-test">
|
||||
<param name="codebase" value="file:///">
|
||||
</object>
|
||||
|
||||
<embed type="application/x-java-test" codebase="file:///" codebase="notused">
|
||||
</div>
|
||||
<div id="nocodebase">
|
||||
<applet></applet>
|
||||
<object type="application/x-java-test"></object>
|
||||
<embed type="application/x-java-test">
|
||||
</div>
|
||||
<div id="emptycodebase">
|
||||
<applet codebase=""></applet>
|
||||
<object type="application/x-java-test" codebase=""></object>
|
||||
<embed type="application/x-java-test" codebase="">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -9,7 +9,6 @@ support-files =
|
|||
1028200-subpageB1.html
|
||||
1028200-subpageC.html
|
||||
file_authident.js
|
||||
file_bug738396.html
|
||||
file_bug771202.html
|
||||
file_bug863792.html
|
||||
file_bug1245545.js
|
||||
|
@ -47,7 +46,6 @@ skip-if = !crashreporter
|
|||
[test_bug532208.html]
|
||||
[test_bug539565-1.html]
|
||||
[test_bug539565-2.html]
|
||||
[test_bug738396.html]
|
||||
[test_bug771202.html]
|
||||
[test_bug777098.html]
|
||||
[test_bug784131.html]
|
||||
|
|
|
@ -1,88 +0,0 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Test for Bug 738396</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" src="plugin-utils.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED,
|
||||
"Java Test Plug-in");
|
||||
|
||||
SpecialPowers.pushPrefEnv({ "set": [
|
||||
['plugin.java.mime', 'application/x-java-test']
|
||||
] }, loadFrame);
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
function loadFrame() {
|
||||
var iframe = document.createElement("iframe");
|
||||
iframe.src = "./file_bug738396.html";
|
||||
iframe.addEventListener("load", function() {
|
||||
runTest(iframe.contentDocument);
|
||||
});
|
||||
document.body.appendChild(iframe);
|
||||
}
|
||||
|
||||
function runTest(doc) {
|
||||
// Check that the canonicalized version of the codebase 'good' was passed
|
||||
// to the plugin in all cases
|
||||
var a = doc.createElement('a');
|
||||
a.href = "good";
|
||||
var goodCodebase = a.href;
|
||||
var codebasevis = doc.getElementById("codebasevis")
|
||||
.querySelectorAll("applet, object, embed");
|
||||
for (var elem of codebasevis) {
|
||||
var codebase = null;
|
||||
try {
|
||||
codebase = elem.getJavaCodebase();
|
||||
} catch (e) {}
|
||||
is(codebase, goodCodebase,
|
||||
"Check that the test plugin sees the proper codebase");
|
||||
}
|
||||
// Check that none of the applets in blockedcodebase were allowed to spawn
|
||||
var blockedcodebase = doc.getElementById("blockedcodebase")
|
||||
.querySelectorAll("applet, object, embed");
|
||||
for (var elem of blockedcodebase) {
|
||||
var spawned = false;
|
||||
try {
|
||||
elem.getObjectValue();
|
||||
spawned = true;
|
||||
} catch (e) {}
|
||||
ok(!spawned, "Plugin should not be allowed to spawn");
|
||||
}
|
||||
|
||||
// With no codebase, the codebase should resolve to "."
|
||||
a.href = ".";
|
||||
goodCodebase = a.href;
|
||||
var nocodebase = doc.getElementById("nocodebase")
|
||||
.querySelectorAll("applet, object, embed");
|
||||
for (var elem of nocodebase) {
|
||||
var codebase = null;
|
||||
try {
|
||||
codebase = elem.getJavaCodebase();
|
||||
} catch (e) {}
|
||||
is(codebase, goodCodebase, "Codebase should resolve to '.'");
|
||||
}
|
||||
|
||||
// With empty codebase, the codebase should resolve to "/"
|
||||
a.href = "/";
|
||||
goodCodebase = a.href;
|
||||
var nocodebase = doc.getElementById("emptycodebase")
|
||||
.querySelectorAll("applet, object, embed");
|
||||
for (var elem of nocodebase) {
|
||||
var codebase = null;
|
||||
try {
|
||||
codebase = elem.getJavaCodebase();
|
||||
} catch (e) {}
|
||||
is(codebase, goodCodebase, "Codebase should resolve to '/'");
|
||||
}
|
||||
|
||||
SimpleTest.finish();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,25 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Helper for Test Bug 908933</title>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<object type="application/x-java-test" codebase="test1"></object>
|
||||
|
||||
<object classid="java:test2" codebase="./test2"></object>
|
||||
|
||||
<object data="test3" classid="java:test3" codebase="./test3"></object>
|
||||
|
||||
<applet codebase="test4"></applet>
|
||||
|
||||
<embed src="test5.class" codebase="test5" type="application/x-java-test">
|
||||
|
||||
<embed type="application/x-java-test" codebase="test6">
|
||||
|
||||
<embed src="test7.class">
|
||||
|
||||
<embed src="test8.class" codebase="test8">
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -85,7 +85,6 @@ support-files =
|
|||
file_policyuri_regression_from_multipolicy.html
|
||||
file_policyuri_regression_from_multipolicy.html^headers^
|
||||
file_policyuri_regression_from_multipolicy_policy
|
||||
file_shouldprocess.html
|
||||
file_nonce_source.html
|
||||
file_nonce_source.html^headers^
|
||||
file_bug941404.html
|
||||
|
@ -274,9 +273,6 @@ skip-if = toolkit == 'android'
|
|||
[test_blocked_uri_in_reports.html]
|
||||
[test_service_worker.html]
|
||||
[test_child-src_worker.html]
|
||||
[test_shouldprocess.html]
|
||||
# Fennec platform does not support Java applet plugin
|
||||
skip-if = toolkit == 'android' #investigate in bug 1250814
|
||||
[test_child-src_worker_data.html]
|
||||
[test_child-src_worker-redirect.html]
|
||||
[test_child-src_iframe.html]
|
||||
|
|
|
@ -1,98 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=908933
|
||||
-->
|
||||
<head>
|
||||
<title>Test Bug 908933</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<script class="testbody" type="text/javascript">
|
||||
|
||||
/*
|
||||
* Description of the test:
|
||||
* We load variations of 'objects' and make sure all the
|
||||
* resource loads are correctly blocked by CSP.
|
||||
* For all the testing we use a CSP with "object-src 'none'"
|
||||
* so that all the loads are either blocked by
|
||||
* shouldProcess or shouldLoad.
|
||||
*/
|
||||
|
||||
const POLICY = "default-src http://mochi.test:8888; object-src 'none'";
|
||||
const TESTFILE = "tests/dom/security/test/csp/file_shouldprocess.html";
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
var tests = [
|
||||
// Note that the files listed below don't actually exist.
|
||||
// Since loading of them should be blocked by shouldProcess, we don't
|
||||
// really need these files.
|
||||
|
||||
// blocked by shouldProcess
|
||||
"http://mochi.test:8888/tests/dom/security/test/csp/test1",
|
||||
"http://mochi.test:8888/tests/dom/security/test/csp/test2",
|
||||
"http://mochi.test:8888/tests/dom/security/test/csp/test3",
|
||||
"http://mochi.test:8888/tests/dom/security/test/csp/test4",
|
||||
"http://mochi.test:8888/tests/dom/security/test/csp/test5",
|
||||
"http://mochi.test:8888/tests/dom/security/test/csp/test6",
|
||||
// blocked by shouldLoad
|
||||
"http://mochi.test:8888/tests/dom/security/test/csp/test7.class",
|
||||
"http://mochi.test:8888/tests/dom/security/test/csp/test8.class",
|
||||
];
|
||||
|
||||
function checkResults(aURI) {
|
||||
var index = tests.indexOf(aURI);
|
||||
if (index > -1) {
|
||||
tests.splice(index, 1);
|
||||
ok(true, "ShouldLoad or ShouldProcess blocks TYPE_OBJECT with uri: " + aURI + "!");
|
||||
}
|
||||
else {
|
||||
ok(false, "ShouldLoad or ShouldProcess incorreclty blocks TYPE_OBJECT with uri: " + aURI + "!");
|
||||
}
|
||||
if (tests.length == 0) {
|
||||
window.examiner.remove();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
// used to watch that shouldProcess blocks TYPE_OBJECT
|
||||
function examiner() {
|
||||
SpecialPowers.addObserver(this, "csp-on-violate-policy");
|
||||
}
|
||||
examiner.prototype = {
|
||||
observe: function(subject, topic, data) {
|
||||
if (topic === "csp-on-violate-policy") {
|
||||
var asciiSpec =
|
||||
SpecialPowers.getPrivilegedProps(SpecialPowers.do_QueryInterface(subject, "nsIURI"), "asciiSpec");
|
||||
checkResults(asciiSpec);
|
||||
}
|
||||
},
|
||||
remove: function() {
|
||||
SpecialPowers.removeObserver(this, "csp-on-violate-policy");
|
||||
}
|
||||
}
|
||||
window.examiner = new examiner();
|
||||
|
||||
function loadFrame() {
|
||||
var src = "file_testserver.sjs";
|
||||
// append the file that should be served
|
||||
src += "?file=" + escape(TESTFILE);
|
||||
// append the CSP that should be used to serve the file
|
||||
src += "&csp=" + escape(POLICY);
|
||||
|
||||
var iframe = document.createElement("iframe");
|
||||
iframe.src = src;
|
||||
document.body.appendChild(iframe);
|
||||
}
|
||||
|
||||
SpecialPowers.pushPrefEnv(
|
||||
{ "set": [['plugin.java.mime', 'application/x-java-test']] },
|
||||
loadFrame);
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
|
@ -207,7 +207,6 @@ support-files =
|
|||
files/xhtml1-frameset.dtd
|
||||
files/xhtml1-strict.dtd
|
||||
files/xhtml1-transitional.dtd
|
||||
files/applets/org/w3c/domts/DOMTSApplet.class
|
||||
|
||||
[test_HTMLAnchorElement01.html]
|
||||
[test_HTMLAnchorElement02.html]
|
||||
|
@ -223,17 +222,6 @@ support-files =
|
|||
[test_HTMLAnchorElement12.html]
|
||||
[test_HTMLAnchorElement13.html]
|
||||
[test_HTMLAnchorElement14.html]
|
||||
[test_HTMLAppletElement01.html]
|
||||
[test_HTMLAppletElement02.html]
|
||||
[test_HTMLAppletElement03.html]
|
||||
[test_HTMLAppletElement04.html]
|
||||
[test_HTMLAppletElement05.html]
|
||||
[test_HTMLAppletElement06.html]
|
||||
[test_HTMLAppletElement07.html]
|
||||
[test_HTMLAppletElement08.html]
|
||||
[test_HTMLAppletElement09.html]
|
||||
[test_HTMLAppletElement10.html]
|
||||
[test_HTMLAppletElement11.html]
|
||||
[test_HTMLAreaElement01.html]
|
||||
[test_HTMLAreaElement02.html]
|
||||
[test_HTMLAreaElement03.html]
|
||||
|
@ -280,7 +268,6 @@ support-files =
|
|||
[test_HTMLDocument04.html]
|
||||
[test_HTMLDocument05.html]
|
||||
[test_HTMLDocument07.html]
|
||||
[test_HTMLDocument08.html]
|
||||
[test_HTMLDocument09.html]
|
||||
[test_HTMLDocument10.html]
|
||||
[test_HTMLDocument11.html]
|
||||
|
|
|
@ -1,137 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement01</title>
|
||||
<link type="text/css" rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
<script src="/tests/SimpleTest/SimpleTest.js" type="text/javascript"></script>
|
||||
<script src="DOMTestCase.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// expose test function names
|
||||
function exposeTestFunctionNames()
|
||||
{
|
||||
return ['HTMLAppletElement01'];
|
||||
}
|
||||
|
||||
var docsLoaded = -1000000;
|
||||
var builder = null;
|
||||
|
||||
//
|
||||
// This function is called by the testing framework before
|
||||
// running the test suite.
|
||||
//
|
||||
// If there are no configuration exceptions, asynchronous
|
||||
// document loading is started. Otherwise, the status
|
||||
// is set to complete and the exception is immediately
|
||||
// raised when entering the body of the test.
|
||||
//
|
||||
function setUpPage() {
|
||||
setUpPageStatus = 'running';
|
||||
try {
|
||||
//
|
||||
// creates test document builder, may throw exception
|
||||
//
|
||||
builder = createConfiguredBuilder();
|
||||
|
||||
docsLoaded = 0;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
docsLoaded += preload(docRef, "doc", "applet");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// This method is called on the completion of
|
||||
// each asychronous load started in setUpTests.
|
||||
//
|
||||
// When every synchronous loaded document has completed,
|
||||
// the page status is changed which allows the
|
||||
// body of the test to be executed.
|
||||
function loadComplete() {
|
||||
if (++docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
runJSUnitTests();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
The align attribute specifies the alignment of the object(Vertically
|
||||
or Horizontally) with respect to its surrounding text.
|
||||
|
||||
Retrieve the align attribute and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8049912
|
||||
*/
|
||||
function HTMLAppletElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","bottom".toLowerCase(),valign.toLowerCase());
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement01</h2>
|
||||
<p><test name='HTMLAppletElement01' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAppletElement01</title>
|
||||
<br> <creator>NIST</creator>
|
||||
<br> <description>
|
||||
The align attribute specifies the alignment of the object(Vertically
|
||||
or Horizontally) with respect to its surrounding text.
|
||||
|
||||
Retrieve the align attribute and examine its value.
|
||||
</description>
|
||||
<br> <contributor>Mary Brady</contributor>
|
||||
<br> <date qualifier='created'>2002-02-22</date>
|
||||
<br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8049912">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8049912</a>'/>
|
||||
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='valign' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='applet' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"applet"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <align interface='HTMLAppletElement' obj='testNode' var='valign'/><br> <assertEquals actual='valign' expected='"bottom"' <a id="alignLink">id='alignLink'</a> ignoreCase='true'/><br></test><br>
|
||||
</p>
|
||||
<p>
|
||||
Copyright (c) 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, Institut National de
|
||||
Recherche en Informatique et en Automatique, Keio University). All
|
||||
Rights Reserved. This program is distributed under the W3C's Software
|
||||
Intellectual Property License. This program is distributed in the
|
||||
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
</p>
|
||||
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
|
||||
for more details.</p>
|
||||
<iframe name="doc" src="files/applet.html"></iframe>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
|
@ -1,137 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement02</title>
|
||||
<link type="text/css" rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
<script src="/tests/SimpleTest/SimpleTest.js" type="text/javascript"></script>
|
||||
<script src="DOMTestCase.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// expose test function names
|
||||
function exposeTestFunctionNames()
|
||||
{
|
||||
return ['HTMLAppletElement02'];
|
||||
}
|
||||
|
||||
var docsLoaded = -1000000;
|
||||
var builder = null;
|
||||
|
||||
//
|
||||
// This function is called by the testing framework before
|
||||
// running the test suite.
|
||||
//
|
||||
// If there are no configuration exceptions, asynchronous
|
||||
// document loading is started. Otherwise, the status
|
||||
// is set to complete and the exception is immediately
|
||||
// raised when entering the body of the test.
|
||||
//
|
||||
function setUpPage() {
|
||||
setUpPageStatus = 'running';
|
||||
try {
|
||||
//
|
||||
// creates test document builder, may throw exception
|
||||
//
|
||||
builder = createConfiguredBuilder();
|
||||
|
||||
docsLoaded = 0;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
docsLoaded += preload(docRef, "doc", "applet");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// This method is called on the completion of
|
||||
// each asychronous load started in setUpTests.
|
||||
//
|
||||
// When every synchronous loaded document has completed,
|
||||
// the page status is changed which allows the
|
||||
// body of the test to be executed.
|
||||
function loadComplete() {
|
||||
if (++docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
runJSUnitTests();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
The alt attribute specifies the alternate text for user agents not
|
||||
rendering the normal context of this element.
|
||||
|
||||
Retrieve the alt attribute and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-58610064
|
||||
*/
|
||||
function HTMLAppletElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valt;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valt = testNode.alt;
|
||||
|
||||
assertEquals("altLink","Applet Number 1",valt);
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement02</h2>
|
||||
<p><test name='HTMLAppletElement02' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAppletElement02</title>
|
||||
<br> <creator>NIST</creator>
|
||||
<br> <description>
|
||||
The alt attribute specifies the alternate text for user agents not
|
||||
rendering the normal context of this element.
|
||||
|
||||
Retrieve the alt attribute and examine its value.
|
||||
</description>
|
||||
<br> <contributor>Mary Brady</contributor>
|
||||
<br> <date qualifier='created'>2002-02-22</date>
|
||||
<br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-58610064">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-58610064</a>'/>
|
||||
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='valt' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='applet' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"applet"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <alt interface='HTMLAppletElement' obj='testNode' var='valt'/><br> <assertEquals actual='valt' expected='"Applet Number 1"' <a id="altLink">id='altLink'</a> ignoreCase='false'/><br></test><br>
|
||||
</p>
|
||||
<p>
|
||||
Copyright (c) 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, Institut National de
|
||||
Recherche en Informatique et en Automatique, Keio University). All
|
||||
Rights Reserved. This program is distributed under the W3C's Software
|
||||
Intellectual Property License. This program is distributed in the
|
||||
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
</p>
|
||||
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
|
||||
for more details.</p>
|
||||
<iframe name="doc" src="files/applet.html"></iframe>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
|
@ -1,135 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement03</title>
|
||||
<link type="text/css" rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
<script src="/tests/SimpleTest/SimpleTest.js" type="text/javascript"></script>
|
||||
<script src="DOMTestCase.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// expose test function names
|
||||
function exposeTestFunctionNames()
|
||||
{
|
||||
return ['HTMLAppletElement03'];
|
||||
}
|
||||
|
||||
var docsLoaded = -1000000;
|
||||
var builder = null;
|
||||
|
||||
//
|
||||
// This function is called by the testing framework before
|
||||
// running the test suite.
|
||||
//
|
||||
// If there are no configuration exceptions, asynchronous
|
||||
// document loading is started. Otherwise, the status
|
||||
// is set to complete and the exception is immediately
|
||||
// raised when entering the body of the test.
|
||||
//
|
||||
function setUpPage() {
|
||||
setUpPageStatus = 'running';
|
||||
try {
|
||||
//
|
||||
// creates test document builder, may throw exception
|
||||
//
|
||||
builder = createConfiguredBuilder();
|
||||
|
||||
docsLoaded = 0;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
docsLoaded += preload(docRef, "doc", "applet");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// This method is called on the completion of
|
||||
// each asychronous load started in setUpTests.
|
||||
//
|
||||
// When every synchronous loaded document has completed,
|
||||
// the page status is changed which allows the
|
||||
// body of the test to be executed.
|
||||
function loadComplete() {
|
||||
if (++docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
runJSUnitTests();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
The archive attribute specifies a comma-seperated archive list.
|
||||
|
||||
Retrieve the archive attribute and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-14476360
|
||||
*/
|
||||
function HTMLAppletElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement03") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var varchive;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
varchive = testNode.archive;
|
||||
|
||||
assertEquals("archiveLink","",varchive);
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement03</h2>
|
||||
<p><test name='HTMLAppletElement03' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAppletElement03</title>
|
||||
<br> <creator>NIST</creator>
|
||||
<br> <description>
|
||||
The archive attribute specifies a comma-seperated archive list.
|
||||
|
||||
Retrieve the archive attribute and examine its value.
|
||||
</description>
|
||||
<br> <contributor>Mary Brady</contributor>
|
||||
<br> <date qualifier='created'>2002-02-22</date>
|
||||
<br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-14476360">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-14476360</a>'/>
|
||||
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='varchive' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='applet' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"applet"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <archive interface='HTMLAppletElement' obj='testNode' var='varchive'/><br> <assertEquals actual='varchive' expected='""' <a id="archiveLink">id='archiveLink'</a> ignoreCase='false'/><br></test><br>
|
||||
</p>
|
||||
<p>
|
||||
Copyright (c) 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, Institut National de
|
||||
Recherche en Informatique et en Automatique, Keio University). All
|
||||
Rights Reserved. This program is distributed under the W3C's Software
|
||||
Intellectual Property License. This program is distributed in the
|
||||
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
</p>
|
||||
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
|
||||
for more details.</p>
|
||||
<iframe name="doc" src="files/applet.html"></iframe>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
|
@ -1,135 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement04</title>
|
||||
<link type="text/css" rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
<script src="/tests/SimpleTest/SimpleTest.js" type="text/javascript"></script>
|
||||
<script src="DOMTestCase.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// expose test function names
|
||||
function exposeTestFunctionNames()
|
||||
{
|
||||
return ['HTMLAppletElement04'];
|
||||
}
|
||||
|
||||
var docsLoaded = -1000000;
|
||||
var builder = null;
|
||||
|
||||
//
|
||||
// This function is called by the testing framework before
|
||||
// running the test suite.
|
||||
//
|
||||
// If there are no configuration exceptions, asynchronous
|
||||
// document loading is started. Otherwise, the status
|
||||
// is set to complete and the exception is immediately
|
||||
// raised when entering the body of the test.
|
||||
//
|
||||
function setUpPage() {
|
||||
setUpPageStatus = 'running';
|
||||
try {
|
||||
//
|
||||
// creates test document builder, may throw exception
|
||||
//
|
||||
builder = createConfiguredBuilder();
|
||||
|
||||
docsLoaded = 0;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
docsLoaded += preload(docRef, "doc", "applet");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// This method is called on the completion of
|
||||
// each asychronous load started in setUpTests.
|
||||
//
|
||||
// When every synchronous loaded document has completed,
|
||||
// the page status is changed which allows the
|
||||
// body of the test to be executed.
|
||||
function loadComplete() {
|
||||
if (++docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
runJSUnitTests();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
The code attribute specifies the applet class file.
|
||||
|
||||
Retrieve the code attribute and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-61509645
|
||||
*/
|
||||
function HTMLAppletElement04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement04") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcode;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcode = testNode.code;
|
||||
|
||||
assertEquals("codeLink","org/w3c/domts/DOMTSApplet.class",vcode);
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement04</h2>
|
||||
<p><test name='HTMLAppletElement04' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAppletElement04</title>
|
||||
<br> <creator>NIST</creator>
|
||||
<br> <description>
|
||||
The code attribute specifies the applet class file.
|
||||
|
||||
Retrieve the code attribute and examine its value.
|
||||
</description>
|
||||
<br> <contributor>Mary Brady</contributor>
|
||||
<br> <date qualifier='created'>2002-02-22</date>
|
||||
<br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-61509645">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-61509645</a>'/>
|
||||
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vcode' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='applet' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"applet"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <code interface='HTMLAppletElement' obj='testNode' var='vcode'/><br> <assertEquals actual='vcode' expected='"org/w3c/domts/DOMTSApplet.class"' <a id="codeLink">id='codeLink'</a> ignoreCase='false'/><br></test><br>
|
||||
</p>
|
||||
<p>
|
||||
Copyright (c) 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, Institut National de
|
||||
Recherche en Informatique et en Automatique, Keio University). All
|
||||
Rights Reserved. This program is distributed under the W3C's Software
|
||||
Intellectual Property License. This program is distributed in the
|
||||
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
</p>
|
||||
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
|
||||
for more details.</p>
|
||||
<iframe name="doc" src="files/applet.html"></iframe>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
|
@ -1,136 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement05</title>
|
||||
<link type="text/css" rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
<script src="/tests/SimpleTest/SimpleTest.js" type="text/javascript"></script>
|
||||
<script src="DOMTestCase.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// expose test function names
|
||||
function exposeTestFunctionNames()
|
||||
{
|
||||
return ['HTMLAppletElement05'];
|
||||
}
|
||||
|
||||
var docsLoaded = -1000000;
|
||||
var builder = null;
|
||||
|
||||
//
|
||||
// This function is called by the testing framework before
|
||||
// running the test suite.
|
||||
//
|
||||
// If there are no configuration exceptions, asynchronous
|
||||
// document loading is started. Otherwise, the status
|
||||
// is set to complete and the exception is immediately
|
||||
// raised when entering the body of the test.
|
||||
//
|
||||
function setUpPage() {
|
||||
setUpPageStatus = 'running';
|
||||
try {
|
||||
//
|
||||
// creates test document builder, may throw exception
|
||||
//
|
||||
builder = createConfiguredBuilder();
|
||||
|
||||
docsLoaded = 0;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
docsLoaded += preload(docRef, "doc", "applet");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// This method is called on the completion of
|
||||
// each asychronous load started in setUpTests.
|
||||
//
|
||||
// When every synchronous loaded document has completed,
|
||||
// the page status is changed which allows the
|
||||
// body of the test to be executed.
|
||||
function loadComplete() {
|
||||
if (++docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
runJSUnitTests();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
The codeBase attribute specifies an optional base URI for the applet.
|
||||
|
||||
Retrieve the codeBase attribute and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6581160
|
||||
*/
|
||||
function HTMLAppletElement05() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement05") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcodebase;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcodebase = testNode.codeBase;
|
||||
// mozilla returns full URI here
|
||||
// assertEquals("codebase","applets",vcodebase);
|
||||
todo_is(vcodebase,"applets","codebase");
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement05</h2>
|
||||
<p><test name='HTMLAppletElement05' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAppletElement05</title>
|
||||
<br> <creator>NIST</creator>
|
||||
<br> <description>
|
||||
The codeBase attribute specifies an optional base URI for the applet.
|
||||
|
||||
Retrieve the codeBase attribute and examine its value.
|
||||
</description>
|
||||
<br> <contributor>Mary Brady</contributor>
|
||||
<br> <date qualifier='created'>2002-02-22</date>
|
||||
<br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6581160">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6581160</a>'/>
|
||||
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vcodebase' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='applet' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"applet"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <codeBase interface='HTMLAppletElement' obj='testNode' var='vcodebase'/><br> <assertEquals actual='vcodebase' expected='"applets"' <a id="codebase">id='codebase'</a> ignoreCase='false'/><br></test><br>
|
||||
</p>
|
||||
<p>
|
||||
Copyright (c) 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, Institut National de
|
||||
Recherche en Informatique et en Automatique, Keio University). All
|
||||
Rights Reserved. This program is distributed under the W3C's Software
|
||||
Intellectual Property License. This program is distributed in the
|
||||
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
</p>
|
||||
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
|
||||
for more details.</p>
|
||||
<iframe name="doc" src="files/applet.html"></iframe>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
|
@ -1,135 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement06</title>
|
||||
<link type="text/css" rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
<script src="/tests/SimpleTest/SimpleTest.js" type="text/javascript"></script>
|
||||
<script src="DOMTestCase.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// expose test function names
|
||||
function exposeTestFunctionNames()
|
||||
{
|
||||
return ['HTMLAppletElement06'];
|
||||
}
|
||||
|
||||
var docsLoaded = -1000000;
|
||||
var builder = null;
|
||||
|
||||
//
|
||||
// This function is called by the testing framework before
|
||||
// running the test suite.
|
||||
//
|
||||
// If there are no configuration exceptions, asynchronous
|
||||
// document loading is started. Otherwise, the status
|
||||
// is set to complete and the exception is immediately
|
||||
// raised when entering the body of the test.
|
||||
//
|
||||
function setUpPage() {
|
||||
setUpPageStatus = 'running';
|
||||
try {
|
||||
//
|
||||
// creates test document builder, may throw exception
|
||||
//
|
||||
builder = createConfiguredBuilder();
|
||||
|
||||
docsLoaded = 0;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
docsLoaded += preload(docRef, "doc", "applet");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// This method is called on the completion of
|
||||
// each asychronous load started in setUpTests.
|
||||
//
|
||||
// When every synchronous loaded document has completed,
|
||||
// the page status is changed which allows the
|
||||
// body of the test to be executed.
|
||||
function loadComplete() {
|
||||
if (++docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
runJSUnitTests();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
The height attribute overrides the height.
|
||||
|
||||
Retrieve the height attribute and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-90184867
|
||||
*/
|
||||
function HTMLAppletElement06() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement06") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vheight;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vheight = testNode.height;
|
||||
|
||||
assertEquals("heightLink","306",vheight);
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement06</h2>
|
||||
<p><test name='HTMLAppletElement06' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAppletElement06</title>
|
||||
<br> <creator>NIST</creator>
|
||||
<br> <description>
|
||||
The height attribute overrides the height.
|
||||
|
||||
Retrieve the height attribute and examine its value.
|
||||
</description>
|
||||
<br> <contributor>Mary Brady</contributor>
|
||||
<br> <date qualifier='created'>2002-02-22</date>
|
||||
<br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-90184867">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-90184867</a>'/>
|
||||
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vheight' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='applet' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"applet"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <height interface='HTMLAppletElement' obj='testNode' var='vheight'/><br> <assertEquals actual='vheight' expected='"306"' <a id="heightLink">id='heightLink'</a> ignoreCase='false'/><br></test><br>
|
||||
</p>
|
||||
<p>
|
||||
Copyright (c) 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, Institut National de
|
||||
Recherche en Informatique et en Automatique, Keio University). All
|
||||
Rights Reserved. This program is distributed under the W3C's Software
|
||||
Intellectual Property License. This program is distributed in the
|
||||
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
</p>
|
||||
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
|
||||
for more details.</p>
|
||||
<iframe name="doc" src="files/applet.html"></iframe>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
|
@ -1,137 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement07</title>
|
||||
<link type="text/css" rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
<script src="/tests/SimpleTest/SimpleTest.js" type="text/javascript"></script>
|
||||
<script src="DOMTestCase.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// expose test function names
|
||||
function exposeTestFunctionNames()
|
||||
{
|
||||
return ['HTMLAppletElement07'];
|
||||
}
|
||||
|
||||
var docsLoaded = -1000000;
|
||||
var builder = null;
|
||||
|
||||
//
|
||||
// This function is called by the testing framework before
|
||||
// running the test suite.
|
||||
//
|
||||
// If there are no configuration exceptions, asynchronous
|
||||
// document loading is started. Otherwise, the status
|
||||
// is set to complete and the exception is immediately
|
||||
// raised when entering the body of the test.
|
||||
//
|
||||
function setUpPage() {
|
||||
setUpPageStatus = 'running';
|
||||
try {
|
||||
//
|
||||
// creates test document builder, may throw exception
|
||||
//
|
||||
builder = createConfiguredBuilder();
|
||||
|
||||
docsLoaded = 0;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
docsLoaded += preload(docRef, "doc", "applet");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// This method is called on the completion of
|
||||
// each asychronous load started in setUpTests.
|
||||
//
|
||||
// When every synchronous loaded document has completed,
|
||||
// the page status is changed which allows the
|
||||
// body of the test to be executed.
|
||||
function loadComplete() {
|
||||
if (++docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
runJSUnitTests();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
The hspace attribute specifies the horizontal space to the left
|
||||
and right of this image, applet, or object.
|
||||
|
||||
Retrieve the hspace attribute and examine it's value.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-HTML/html#ID-1567197
|
||||
*/
|
||||
function HTMLAppletElement07() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement07") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vhspace;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vhspace = testNode.hspace;
|
||||
|
||||
assertEquals("hspaceLink",0,vhspace);
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement07</h2>
|
||||
<p><test name='HTMLAppletElement07' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-2 dom2.xsd'><br> <metadata><br> <title>HTMLAppletElement07</title>
|
||||
<br> <creator>NIST</creator>
|
||||
<br> <description>
|
||||
The hspace attribute specifies the horizontal space to the left
|
||||
and right of this image, applet, or object.
|
||||
|
||||
Retrieve the hspace attribute and examine it's value.
|
||||
</description>
|
||||
<br> <contributor>Mary Brady</contributor>
|
||||
<br> <date qualifier='created'>2001-12-03</date>
|
||||
<br> <subject resource='<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html#ID-1567197">http://www.w3.org/TR/DOM-Level-2-HTML/html#ID-1567197</a>'/>
|
||||
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vhspace' type='int'/><br> <var name='doc' type='Node'/><br> <load var='doc' href='applet' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"applet"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <hspace interface='HTMLAppletElement' obj='testNode' var='vhspace'/><br> <assertEquals actual='vhspace' expected='0' <a id="hspaceLink">id='hspaceLink'</a> ignoreCase='false'/><br></test><br>
|
||||
</p>
|
||||
<p>
|
||||
Copyright (c) 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, Institut National de
|
||||
Recherche en Informatique et en Automatique, Keio University). All
|
||||
Rights Reserved. This program is distributed under the W3C's Software
|
||||
Intellectual Property License. This program is distributed in the
|
||||
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
</p>
|
||||
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
|
||||
for more details.</p>
|
||||
<iframe name="doc" src="files/applet.html"></iframe>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
|
@ -1,135 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement08</title>
|
||||
<link type="text/css" rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
<script src="/tests/SimpleTest/SimpleTest.js" type="text/javascript"></script>
|
||||
<script src="DOMTestCase.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// expose test function names
|
||||
function exposeTestFunctionNames()
|
||||
{
|
||||
return ['HTMLAppletElement08'];
|
||||
}
|
||||
|
||||
var docsLoaded = -1000000;
|
||||
var builder = null;
|
||||
|
||||
//
|
||||
// This function is called by the testing framework before
|
||||
// running the test suite.
|
||||
//
|
||||
// If there are no configuration exceptions, asynchronous
|
||||
// document loading is started. Otherwise, the status
|
||||
// is set to complete and the exception is immediately
|
||||
// raised when entering the body of the test.
|
||||
//
|
||||
function setUpPage() {
|
||||
setUpPageStatus = 'running';
|
||||
try {
|
||||
//
|
||||
// creates test document builder, may throw exception
|
||||
//
|
||||
builder = createConfiguredBuilder();
|
||||
|
||||
docsLoaded = 0;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
docsLoaded += preload(docRef, "doc", "applet");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// This method is called on the completion of
|
||||
// each asychronous load started in setUpTests.
|
||||
//
|
||||
// When every synchronous loaded document has completed,
|
||||
// the page status is changed which allows the
|
||||
// body of the test to be executed.
|
||||
function loadComplete() {
|
||||
if (++docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
runJSUnitTests();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
The name attribute specifies the name of the applet.
|
||||
|
||||
Retrieve the name attribute and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39843695
|
||||
*/
|
||||
function HTMLAppletElement08() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement08") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vname = testNode.name;
|
||||
|
||||
assertEquals("nameLink","applet1",vname);
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement08</h2>
|
||||
<p><test name='HTMLAppletElement08' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAppletElement08</title>
|
||||
<br> <creator>NIST</creator>
|
||||
<br> <description>
|
||||
The name attribute specifies the name of the applet.
|
||||
|
||||
Retrieve the name attribute and examine its value.
|
||||
</description>
|
||||
<br> <contributor>Mary Brady</contributor>
|
||||
<br> <date qualifier='created'>2002-02-22</date>
|
||||
<br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39843695">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39843695</a>'/>
|
||||
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vname' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='applet' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"applet"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <name interface='HTMLAppletElement' obj='testNode' var='vname'/><br> <assertEquals actual='vname' expected='"applet1"' <a id="nameLink">id='nameLink'</a> ignoreCase='false'/><br></test><br>
|
||||
</p>
|
||||
<p>
|
||||
Copyright (c) 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, Institut National de
|
||||
Recherche en Informatique et en Automatique, Keio University). All
|
||||
Rights Reserved. This program is distributed under the W3C's Software
|
||||
Intellectual Property License. This program is distributed in the
|
||||
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
</p>
|
||||
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
|
||||
for more details.</p>
|
||||
<iframe name="doc" src="files/applet.html"></iframe>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
|
@ -1,137 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement09</title>
|
||||
<link type="text/css" rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
<script src="/tests/SimpleTest/SimpleTest.js" type="text/javascript"></script>
|
||||
<script src="DOMTestCase.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// expose test function names
|
||||
function exposeTestFunctionNames()
|
||||
{
|
||||
return ['HTMLAppletElement09'];
|
||||
}
|
||||
|
||||
var docsLoaded = -1000000;
|
||||
var builder = null;
|
||||
|
||||
//
|
||||
// This function is called by the testing framework before
|
||||
// running the test suite.
|
||||
//
|
||||
// If there are no configuration exceptions, asynchronous
|
||||
// document loading is started. Otherwise, the status
|
||||
// is set to complete and the exception is immediately
|
||||
// raised when entering the body of the test.
|
||||
//
|
||||
function setUpPage() {
|
||||
setUpPageStatus = 'running';
|
||||
try {
|
||||
//
|
||||
// creates test document builder, may throw exception
|
||||
//
|
||||
builder = createConfiguredBuilder();
|
||||
|
||||
docsLoaded = 0;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
docsLoaded += preload(docRef, "doc", "applet");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// This method is called on the completion of
|
||||
// each asychronous load started in setUpTests.
|
||||
//
|
||||
// When every synchronous loaded document has completed,
|
||||
// the page status is changed which allows the
|
||||
// body of the test to be executed.
|
||||
function loadComplete() {
|
||||
if (++docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
runJSUnitTests();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
The vspace attribute specifies the vertical space above and below
|
||||
this image, applet or object.
|
||||
|
||||
Retrieve the vspace attribute and examine it's value.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-HTML/html#ID-22637173
|
||||
*/
|
||||
function HTMLAppletElement09() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement09") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vvspace;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vvspace = testNode.vspace;
|
||||
|
||||
assertEquals("vspaceLink",0,vvspace);
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement09</h2>
|
||||
<p><test name='HTMLAppletElement09' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-2 dom2.xsd'><br> <metadata><br> <title>HTMLAppletElement09</title>
|
||||
<br> <creator>NIST</creator>
|
||||
<br> <description>
|
||||
The vspace attribute specifies the vertical space above and below
|
||||
this image, applet or object.
|
||||
|
||||
Retrieve the vspace attribute and examine it's value.
|
||||
</description>
|
||||
<br> <contributor>Mary Brady</contributor>
|
||||
<br> <date qualifier='created'>2001-12-03</date>
|
||||
<br> <subject resource='<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html#ID-22637173">http://www.w3.org/TR/DOM-Level-2-HTML/html#ID-22637173</a>'/>
|
||||
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vvspace' type='int'/><br> <var name='doc' type='Node'/><br> <load var='doc' href='applet' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"applet"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <vspace interface='HTMLAppletElement' obj='testNode' var='vvspace'/><br> <assertEquals actual='vvspace' expected='0' <a id="vspaceLink">id='vspaceLink'</a> ignoreCase='false'/><br></test><br>
|
||||
</p>
|
||||
<p>
|
||||
Copyright (c) 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, Institut National de
|
||||
Recherche en Informatique et en Automatique, Keio University). All
|
||||
Rights Reserved. This program is distributed under the W3C's Software
|
||||
Intellectual Property License. This program is distributed in the
|
||||
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
</p>
|
||||
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
|
||||
for more details.</p>
|
||||
<iframe name="doc" src="files/applet.html"></iframe>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
|
@ -1,135 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement10</title>
|
||||
<link type="text/css" rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
<script src="/tests/SimpleTest/SimpleTest.js" type="text/javascript"></script>
|
||||
<script src="DOMTestCase.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// expose test function names
|
||||
function exposeTestFunctionNames()
|
||||
{
|
||||
return ['HTMLAppletElement10'];
|
||||
}
|
||||
|
||||
var docsLoaded = -1000000;
|
||||
var builder = null;
|
||||
|
||||
//
|
||||
// This function is called by the testing framework before
|
||||
// running the test suite.
|
||||
//
|
||||
// If there are no configuration exceptions, asynchronous
|
||||
// document loading is started. Otherwise, the status
|
||||
// is set to complete and the exception is immediately
|
||||
// raised when entering the body of the test.
|
||||
//
|
||||
function setUpPage() {
|
||||
setUpPageStatus = 'running';
|
||||
try {
|
||||
//
|
||||
// creates test document builder, may throw exception
|
||||
//
|
||||
builder = createConfiguredBuilder();
|
||||
|
||||
docsLoaded = 0;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
docsLoaded += preload(docRef, "doc", "applet");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// This method is called on the completion of
|
||||
// each asychronous load started in setUpTests.
|
||||
//
|
||||
// When every synchronous loaded document has completed,
|
||||
// the page status is changed which allows the
|
||||
// body of the test to be executed.
|
||||
function loadComplete() {
|
||||
if (++docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
runJSUnitTests();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
The width attribute overrides the regular width.
|
||||
|
||||
Retrieve the width attribute and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-16526327
|
||||
*/
|
||||
function HTMLAppletElement10() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement10") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vwidth;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vwidth = testNode.width;
|
||||
|
||||
assertEquals("widthLink","301",vwidth);
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement10</h2>
|
||||
<p><test name='HTMLAppletElement10' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAppletElement10</title>
|
||||
<br> <creator>NIST</creator>
|
||||
<br> <description>
|
||||
The width attribute overrides the regular width.
|
||||
|
||||
Retrieve the width attribute and examine its value.
|
||||
</description>
|
||||
<br> <contributor>Mary Brady</contributor>
|
||||
<br> <date qualifier='created'>2002-02-22</date>
|
||||
<br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-16526327">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-16526327</a>'/>
|
||||
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vwidth' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='applet' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"applet"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <width interface='HTMLAppletElement' obj='testNode' var='vwidth'/><br> <assertEquals actual='vwidth' expected='"301"' <a id="widthLink">id='widthLink'</a> ignoreCase='false'/><br></test><br>
|
||||
</p>
|
||||
<p>
|
||||
Copyright (c) 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, Institut National de
|
||||
Recherche en Informatique et en Automatique, Keio University). All
|
||||
Rights Reserved. This program is distributed under the W3C's Software
|
||||
Intellectual Property License. This program is distributed in the
|
||||
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
</p>
|
||||
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
|
||||
for more details.</p>
|
||||
<iframe name="doc" src="files/applet.html"></iframe>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
|
@ -1,138 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement11</title>
|
||||
<link type="text/css" rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
<script src="/tests/SimpleTest/SimpleTest.js" type="text/javascript"></script>
|
||||
<script src="DOMTestCase.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// expose test function names
|
||||
function exposeTestFunctionNames()
|
||||
{
|
||||
return ['HTMLAppletElement11'];
|
||||
}
|
||||
|
||||
var docsLoaded = -1000000;
|
||||
var builder = null;
|
||||
|
||||
//
|
||||
// This function is called by the testing framework before
|
||||
// running the test suite.
|
||||
//
|
||||
// If there are no configuration exceptions, asynchronous
|
||||
// document loading is started. Otherwise, the status
|
||||
// is set to complete and the exception is immediately
|
||||
// raised when entering the body of the test.
|
||||
//
|
||||
function setUpPage() {
|
||||
setUpPageStatus = 'running';
|
||||
try {
|
||||
//
|
||||
// creates test document builder, may throw exception
|
||||
//
|
||||
builder = createConfiguredBuilder();
|
||||
|
||||
docsLoaded = 0;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
docsLoaded += preload(docRef, "doc", "applet2");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// This method is called on the completion of
|
||||
// each asychronous load started in setUpTests.
|
||||
//
|
||||
// When every synchronous loaded document has completed,
|
||||
// the page status is changed which allows the
|
||||
// body of the test to be executed.
|
||||
function loadComplete() {
|
||||
if (++docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
runJSUnitTests();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
The object attribute specifies the serialized applet file.
|
||||
|
||||
Retrieve the object attribute and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @author Curt Arnold
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93681523
|
||||
*/
|
||||
function HTMLAppletElement11() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement11") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vobject;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet2");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vobject = testNode.object;
|
||||
// mozilla returns full uri here
|
||||
// asertEquals("object","DOMTSApplet.dat",vobject);
|
||||
todo_is(vobject, "DOMTSApplet.dat", "object");
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAppletElement11</h2>
|
||||
<p><test name='HTMLAppletElement11' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAppletElement11</title>
|
||||
<br> <creator>NIST</creator>
|
||||
<br> <description>
|
||||
The object attribute specifies the serialized applet file.
|
||||
|
||||
Retrieve the object attribute and examine its value.
|
||||
</description>
|
||||
<br> <contributor>Rick Rivello</contributor>
|
||||
<br> <contributor>Curt Arnold</contributor>
|
||||
<br> <date qualifier='created'>2002-07-19</date>
|
||||
<br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93681523">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93681523</a>'/>
|
||||
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vobject' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='applet2' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"applet"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <object interface='HTMLAppletElement' obj='testNode' var='vobject'/><br> <assertEquals actual='vobject' expected='"DOMTSApplet.dat"' <a id="object">id='object'</a> ignoreCase='false'/><br></test><br>
|
||||
</p>
|
||||
<p>
|
||||
Copyright (c) 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, Institut National de
|
||||
Recherche en Informatique et en Automatique, Keio University). All
|
||||
Rights Reserved. This program is distributed under the W3C's Software
|
||||
Intellectual Property License. This program is distributed in the
|
||||
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
</p>
|
||||
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
|
||||
for more details.</p>
|
||||
<iframe name="doc" src="files/applet2.html"></iframe>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
|
@ -1,137 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLDocument08</title>
|
||||
<link type="text/css" rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
<script src="/tests/SimpleTest/SimpleTest.js" type="text/javascript"></script>
|
||||
<script src="DOMTestCase.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// expose test function names
|
||||
function exposeTestFunctionNames()
|
||||
{
|
||||
return ['HTMLDocument08'];
|
||||
}
|
||||
|
||||
var docsLoaded = -1000000;
|
||||
var builder = null;
|
||||
|
||||
//
|
||||
// This function is called by the testing framework before
|
||||
// running the test suite.
|
||||
//
|
||||
// If there are no configuration exceptions, asynchronous
|
||||
// document loading is started. Otherwise, the status
|
||||
// is set to complete and the exception is immediately
|
||||
// raised when entering the body of the test.
|
||||
//
|
||||
function setUpPage() {
|
||||
setUpPageStatus = 'running';
|
||||
try {
|
||||
//
|
||||
// creates test document builder, may throw exception
|
||||
//
|
||||
builder = createConfiguredBuilder();
|
||||
|
||||
docsLoaded = 0;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
docsLoaded += preload(docRef, "doc", "document-with-applet");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPage = 'complete';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// This method is called on the completion of
|
||||
// each asychronous load started in setUpTests.
|
||||
//
|
||||
// When every synchronous loaded document has completed,
|
||||
// the page status is changed which allows the
|
||||
// body of the test to be executed.
|
||||
function loadComplete() {
|
||||
if (++docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
runJSUnitTests();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
The applets attribute returns a collection of all OBJECT elements that
|
||||
include applets abd APPLET elements in a document.
|
||||
|
||||
Retrieve the applets attribute from the document and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85113862
|
||||
*/
|
||||
function HTMLDocument08() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument08") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vapplets;
|
||||
var vlength;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document-with-applet");
|
||||
vapplets = doc.applets;
|
||||
|
||||
vlength = vapplets.length;
|
||||
|
||||
assertEquals("length",2,vlength);
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLDocument08</h2>
|
||||
<p><test name='HTMLDocument08' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLDocument08</title>
|
||||
<br> <creator>NIST</creator>
|
||||
<br> <description>
|
||||
The applets attribute returns a collection of all OBJECT elements that
|
||||
include applets abd APPLET elements in a document.
|
||||
|
||||
Retrieve the applets attribute from the document and examine its value.
|
||||
</description>
|
||||
<br> <contributor>Rick Rivello</contributor>
|
||||
<br> <date qualifier='created'>2002-04-30</date>
|
||||
<br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85113862">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85113862</a>'/>
|
||||
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vapplets' type='HTMLCollection'/><br> <var name='vlength' type='int'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='document' willBeModified='false'/><br> <applets interface='HTMLDocument' obj='doc' var='vapplets'/><br> <length interface='HTMLCollection' obj='vapplets' var='vlength'/><br> <assertEquals actual='vlength' expected='4' <a id="length">id='length'</a> ignoreCase='false'/><br></test><br>
|
||||
</p>
|
||||
<p>
|
||||
Copyright (c) 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, Institut National de
|
||||
Recherche en Informatique et en Automatique, Keio University). All
|
||||
Rights Reserved. This program is distributed under the W3C's Software
|
||||
Intellectual Property License. This program is distributed in the
|
||||
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
</p>
|
||||
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
|
||||
for more details.</p>
|
||||
<iframe name="doc" src="files/document-with-applet.html"></iframe>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
|
@ -396,8 +396,6 @@ var interfaceNamesInGlobalScope =
|
|||
"HTMLAllCollection",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"HTMLAnchorElement",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"HTMLAppletElement",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"HTMLAreaElement",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
|
|
Загрузка…
Ссылка в новой задаче