Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/legend/legend-form.html

Issue 1528823002: Move tests related to <fieldset> and <legend> to fast/forms/fieldset. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/forms/legend/legend-form.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/legend/legend-form.html b/third_party/WebKit/LayoutTests/fast/forms/legend/legend-form.html
deleted file mode 100644
index b5de5bbfa393787d8f930ca7f7912c4391428101..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/legend/legend-form.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("This test checks the form attribute of the legend element.");
-
-var container = document.createElement('div');
-document.body.appendChild(container);
-
-debug('');
-debug('- Ensures that the form attribute of legend element depends on whether its parent is a fieldset element or not.');
-container.innerHTML = '<form id=owner>' +
- ' <fieldset><legend id=legendElement1 name=victim /></fieldset>' +
- ' <legend id=legendElement2 name=victim />' +
- ' <fieldset><div><legend id=legendElement3 name=victim /></div></fieldset>' +
- '</form>';
-owner = document.getElementById('owner');
-var legendElement1 = document.getElementById('legendElement1');
-var legendElement2 = document.getElementById('legendElement2');
-shouldBe('legendElement1.form', 'owner');
-shouldBe('legendElement2.form', 'null');
-shouldBe('legendElement3.form', 'null');
-
-debug('');
-debug('- Ensures that the legend\'s form attribute points its parent fieldset\'s form owner even if the element is within another form element.');
-container.innerHTML = '<form id=owner></form>' +
- '<form id=shouldNotBeOwner>' +
- ' <fieldset id=fieldsetElement name=victim form=owner>' +
- ' <legend id=legendElement name=victim />' +
- ' </fieldset>' +
- '</form>';
-owner = document.getElementById('owner');
-var inputElement = document.getElementById('fieldsetElement');
-var labelElement = document.getElementById('legendElement');
-shouldBe('fieldsetElement.form', 'owner');
-shouldBe('legendElement.form', 'owner');
-
-debug('');
-debug('- Ensures whether the form owner is set correctly for the legend when the value of form attribute of its parent fieldset changed.');
-container.innerHTML = '<form id=form1></form>' +
- '<form id=form2></form>' +
- '<fieldset id=fieldsetElement name=victim form=form1>' +
- ' <legend id=legendElement />' +
- '</fieldset>';
-var form1 = document.getElementById('form1');
-var form2 = document.getElementById('form2');
-fieldsetElement = document.getElementById('fieldsetElement');
-legendElement = document.getElementById('legendElement');
-shouldBe('fieldsetElement.form', 'form1');
-shouldBe('legendElement.form', 'form1');
-fieldsetElement.attributes['form'].value = 'form2';
-shouldBe('fieldsetElement.form', 'form2');
-shouldBe('legendElement.form', 'form2');
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698