Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Dec 15, 2011
1 parent 36d056c commit 096464b
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion test/html.1.html
Expand Up @@ -6,6 +6,6 @@
<script src="../html5shiv.js"></script>
</head>
<body>
<section>This control is in a green box <mark>with these words highlighted</mark>.</section>
<section>This sentence has no border <mark>with these words highlighted</mark>.</section>
<body>
</html>
2 changes: 1 addition & 1 deletion test/html.2.html
Expand Up @@ -8,6 +8,6 @@
<link rel="stylesheet" media="print" href="style.print.css">
</head>
<body>
<section>This control is in a green box <mark>with these words highlighted</mark>.</section>
<section>This sentence is in a green box <mark>with these words highlighted</mark>.</section>
<body>
</html>
4 changes: 2 additions & 2 deletions test/javascript.1.html
Expand Up @@ -7,10 +7,10 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>This control is in a green box <mark>with these words highlighted</mark>.</section>
<section>This sentence is in a green box <mark>with these words highlighted</mark>.</section>
<script id="script">
var div = document.createElement('div');
div.innerHTML = '<section>This native javascript experiment is in a green box <mark>with these words highlighted</mark>?</section>';
div.innerHTML = '<section>This native javascript sentence is in a green box <mark>with these words highlighted</mark>?</section>';
document.body.appendChild(div);
</script>
<body>
Expand Down
6 changes: 3 additions & 3 deletions test/javascript.2.html
Expand Up @@ -7,13 +7,13 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>This control is in a green box <mark>with these words highlighted</mark>.</section>
<section>This sentence is in a green box <mark>with these words highlighted</mark>.</section>
<script id="script">
var div = document.createElement('div');
div.innerHTML = '<section>This native javascript experiment is in a green box <mark>with these words highlighted</mark>?</section>';
div.innerHTML = '<section>This native javascript sentence is in a green box <mark>with these words highlighted</mark>?</section>';
var frag = document.createDocumentFragment();
frag.appendChild(div);
div.innerHTML += '<section>This native javascript experiment is also in a green box <mark>with these words highlighted</mark>?</section>';
div.innerHTML += '<section>This native javascript sentence is also in a green box <mark>with these words highlighted</mark>?</section>';
document.body.appendChild(frag);
</script>
<body>
Expand Down
6 changes: 3 additions & 3 deletions test/javascript.3.html
Expand Up @@ -7,16 +7,16 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>This control is in a green box <mark>with these words highlighted</mark>.</section>
<section>This sentence is in a green box <mark>with these words highlighted</mark>.</section>
<script id="script">
var frag = document.createDocumentFragment();
var fragDiv = ('createElement' in frag) ? frag.createElement('div') : frag.appendChild(document.createElement('div'));
fragDiv.innerHTML = '<section>This native javascript experiment is in a green box <mark>with these words highlighted</mark>?</section>';
fragDiv.innerHTML = '<section>This native javascript sentence is in a green box <mark>with these words highlighted</mark>?</section>';
document.body.appendChild(fragDiv);
var div = document.createElement('div');
var divFrag = (div.document && div.document.createDocumentFragment) ? div.document.createDocumentFragment() : document.createDocumentFragment();
var divFragDiv = ('createElement' in divFrag) ? divFrag.createElement('div') : divFrag.appendChild(document.createElement('div'));
divFragDiv.innerHTML = '<section>This native javascript experiment is also in a green box <mark>with these words highlighted</mark>?</section>';
divFragDiv.innerHTML = '<section>This native javascript sentence is also in a green box <mark>with these words highlighted</mark>?</section>';
document.body.appendChild(divFragDiv);
</script>
<body>
Expand Down
4 changes: 2 additions & 2 deletions test/javascript.4.html
Expand Up @@ -7,10 +7,10 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>This control is in a green box <mark>with these words highlighted</mark>.</section>
<section>This sentence is in a green box <mark>with these words highlighted</mark>.</section>
<script id="script">
var frag = document.createDocumentFragment(), fragDiv = ('createElement' in frag) ? frag.createElement('div') : frag.appendChild(document.createElement('div'));
fragDiv.innerHTML = '<section>This native javascript experiment is in a green box <mark>with these words highlighted</mark>?</section>';
fragDiv.innerHTML = '<section>This native javascript sentence is in a green box <mark>with these words highlighted</mark>?</section>';
var fragDivClone = fragDiv.cloneNode(true);
document.body.appendChild(fragDivClone);
</script>
Expand Down
4 changes: 2 additions & 2 deletions test/javascript.dojo.1.html
Expand Up @@ -8,9 +8,9 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>This control is in a green box <mark>with these words highlighted</mark>.</section>
<section>This sentence is in a green box <mark>with these words highlighted</mark>.</section>
<script>
dojo.body().appendChild(dojo.create('div', { innerHTML: '<section>This Dojo 1.6.1 experiment is in a green box <mark>with these words highlighted</mark>?</section>' }));
dojo.body().appendChild(dojo.create('div', { innerHTML: '<section>This Dojo 1.6.1 sentence is in a green box <mark>with these words highlighted</mark>?</section>' }));
</script>
<body>
</html>
4 changes: 2 additions & 2 deletions test/javascript.dojo.2.html
Expand Up @@ -8,9 +8,9 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>This control is in a green box <mark>with these words highlighted</mark>.</section>
<section>This sentence is in a green box <mark>with these words highlighted</mark>.</section>
<script>
dojo.place('<section>This Dojo 1.6.1 experiment is in a green box <mark>with these words highlighted</mark>?</section>', document.body);
dojo.place('<section>This Dojo 1.6.1 sentence is in a green box <mark>with these words highlighted</mark>?</section>', document.body);
</script>
<body>
</html>
4 changes: 2 additions & 2 deletions test/javascript.jquery.1.html
Expand Up @@ -8,9 +8,9 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>This control is in a green box <mark>with these words highlighted</mark>.</section>
<section>This sentence is in a green box <mark>with these words highlighted</mark>.</section>
<script>
jQuery(document.body).append('<section>This jQuery 1.6.4 experiment is in a green box <mark>with these words highlighted</mark>?</section>');
jQuery(document.body).append('<section>This jQuery 1.6.4 sentence is in a green box <mark>with these words highlighted</mark>?</section>');
</script>
<body>
</html>
4 changes: 2 additions & 2 deletions test/javascript.jquery.2.html
Expand Up @@ -8,9 +8,9 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>This control is in a green box <mark>with these words highlighted</mark>.</section>
<section>This sentence is in a green box <mark>with these words highlighted</mark>.</section>
<script>
jQuery(document.body).append($('<div/>').html('<section>This jQuery 1.6.4 experiment is in a green box <mark>with these words highlighted</mark>?</section>'));
jQuery(document.body).append($('<div/>').html('<section>This jQuery 1.6.4 sentence is in a green box <mark>with these words highlighted</mark>?</section>'));
</script>
<body>
</html>
4 changes: 2 additions & 2 deletions test/javascript.prototype.1.html
Expand Up @@ -8,9 +8,9 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>This control is in a green box <mark>with these words highlighted</mark>.</section>
<section>This sentence is in a green box <mark>with these words highlighted</mark>.</section>
<script id="script">
$(document.body).insert('<section>This Prototype.js 1.7.0.0 experiment is in a green box <mark>with these words highlighted</mark>?</section>');
$(document.body).insert('<section>This Prototype.js 1.7.0.0 sentence is in a green box <mark>with these words highlighted</mark>?</section>');
</script>
<body>
</html>
4 changes: 2 additions & 2 deletions test/javascript.yui.1.html
Expand Up @@ -8,11 +8,11 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>This control is in a green box <mark>with these words highlighted</mark>.</section>
<section>This sentence is in a green box <mark>with these words highlighted</mark>.</section>
<script>
YUI().use('node', function(Y) {
var yDiv = Y.Node.create('<div/>');
yDiv.setContent('<section>This YUI 3.3.0 experiment is in a green box <mark>with these words highlighted</mark>?</section>');
yDiv.setContent('<section>This YUI 3.3.0 sentence is in a green box <mark>with these words highlighted</mark>?</section>');
Y.one(document.body).append(yDiv);
});
</script>
Expand Down

0 comments on commit 096464b

Please sign in to comment.