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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/misc/acid3.html

Issue 2841393003: createElementNS() should now throw only InvalidCharacterError, not NamespaceError (Closed)
Patch Set: rebased Created 3 years, 7 months 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st rict.dtd"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st rict.dtd">
2 <html> 2 <html>
3 <title>The Acid3 Test</title> 3 <title>The Acid3 Test</title>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 testRunner.keepWebHistory(); 7 testRunner.keepWebHistory();
8 } 8 }
9 9
10 var startTime = new Date(); 10 var startTime = new Date();
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 test('0div', null, 5); 953 test('0div', null, 5);
954 test('di v', null, 5); 954 test('di v', null, 5);
955 test('di<v', null, 5); 955 test('di<v', null, 5);
956 test('-div', null, 5); 956 test('-div', null, 5);
957 test('.div', null, 5); 957 test('.div', null, 5);
958 test('<div>', "http://example.com/", 5); 958 test('<div>', "http://example.com/", 5);
959 test('0div', "http://example.com/", 5); 959 test('0div', "http://example.com/", 5);
960 test('di<v', "http://example.com/", 5); 960 test('di<v', "http://example.com/", 5);
961 test('-div', "http://example.com/", 5); 961 test('-div', "http://example.com/", 5);
962 test('.div', "http://example.com/", 5); 962 test('.div', "http://example.com/", 5);
963 test(':div', null, 14); 963 test(':div', null, 5);
964 test(':div', "http://example.com/", 14); 964 test(':div', "http://example.com/", 5);
965 test('d:iv', null, 14); 965 test('d:iv', null, 14);
966 test('xml:test', "http://example.com/", 14); 966 test('xml:test', "http://example.com/", 14);
967 test('xmlns:test', "http://example.com/", 14); // (technically a DOM3 Core test) 967 test('xmlns:test', "http://example.com/", 14); // (technically a DOM3 Core test)
968 test('x:test', "http://www.w3.org/2000/xmlns/", 14); // (technically a DOM 3 Core test) 968 test('x:test', "http://www.w3.org/2000/xmlns/", 14); // (technically a DOM 3 Core test)
969 document.createElementNS("http://www.w3.org/2000/xmlns/", 'xmlns:test'); / / (technically a DOM3 Core test) 969 document.createElementNS("http://www.w3.org/2000/xmlns/", 'xmlns:test'); / / (technically a DOM3 Core test)
970 return 2; 970 return 2;
971 }, 971 },
972 function () { 972 function () {
973 // test 24: event handler attributes 973 // test 24: event handler attributes
974 assertEquals(document.body.getAttribute('onload'), "update() /* this attr ibute's value is tested in one of the tests */ ", "onload value wrong"); 974 assertEquals(document.body.getAttribute('onload'), "update() /* this attr ibute's value is tested in one of the tests */ ", "onload value wrong");
975 return 2; 975 return 2;
976 }, 976 },
977 function () { 977 function () {
978 // test 25: test namespace checking in createDocumentType, and 978 // test 25: test namespace checking in createDocumentType, and
979 // check that exceptions that are thrown are DOMException objects 979 // check that exceptions that are thrown are DOMException objects
980 var message = ""; 980 var message = "";
981 try { 981 try {
982 document.implementation.createDocumentType('a:', '', ''); /* doesn't con tain an illegal character; is malformed */ 982 document.implementation.createDocumentType('a:', '', ''); /* doesn't con tain an illegal character; is malformed */
983 message = "failed to raise exception"; 983 message = "failed to raise exception";
984 } catch (e) { 984 } catch (e) {
985 if (e.code != e.NAMESPACE_ERR) 985 if (e.code != e.INVALID_CHARACTER_ERR)
986 message = "wrong exception"; 986 message = "wrong exception";
987 else if (e.INVALID_ACCESS_ERR != 15) 987 else if (e.INVALID_ACCESS_ERR != 15)
988 message = "exceptions don't have all the constants"; 988 message = "exceptions don't have all the constants";
989 } 989 }
990 if (message) 990 if (message)
991 fail(message); 991 fail(message);
992 return 2; 992 return 2;
993 }, 993 },
994 function () { 994 function () {
995 // test 26: check that document tree survives while still accessible 995 // test 26: check that document tree survives while still accessible
(...skipping 2514 matching lines...) Expand 10 before | Expand all | Expand 10 after
3510 ><p id="bucket5" class="z"></p 3510 ><p id="bucket5" class="z"></p
3511 ><p id="bucket6" class="z"></p> 3511 ><p id="bucket6" class="z"></p>
3512 </div> 3512 </div>
3513 <p id="result"><span id="score">JS</span><span id="slash" class="hidden">/</sp an><span>?</span></p> 3513 <p id="result"><span id="score">JS</span><span id="slash" class="hidden">/</sp an><span>?</span></p>
3514 <!-- The following line is used in a number of the tests. It is done using doc ument.write() to sidestep complaints of validity. --> 3514 <!-- The following line is used in a number of the tests. It is done using doc ument.write() to sidestep complaints of validity. -->
3515 <script type="text/javascript">document.write('<map name=""><area href="" shap e="rect" coords="2,2,4,4" alt="<\'>"><iframe src="resources/acid3/empty.png">FAI L<\/iframe><iframe src="resources/acid3/empty.txt">FAIL<\/iframe><iframe src="re sources/acid3/empty.html" id="selectors"><\/iframe><form action="" name="form">< input type=HIDDEN><\/form><table><tr><td><p><\/tbody> <\/table><\/map>');</scrip t> 3515 <script type="text/javascript">document.write('<map name=""><area href="" shap e="rect" coords="2,2,4,4" alt="<\'>"><iframe src="resources/acid3/empty.png">FAI L<\/iframe><iframe src="resources/acid3/empty.txt">FAIL<\/iframe><iframe src="re sources/acid3/empty.html" id="selectors"><\/iframe><form action="" name="form">< input type=HIDDEN><\/form><table><tr><td><p><\/tbody> <\/table><\/map>');</scrip t>
3516 <p id="instructions">To pass the test,<span></span> a browser must use its def ault settings, the animation has to be smooth, the score has to end on 100/100, and the final page has to look exactly, pixel for pixel, like <a href="resources /acid3/reference.html">this reference rendering</a>.</p> 3516 <p id="instructions">To pass the test,<span></span> a browser must use its def ault settings, the animation has to be smooth, the score has to end on 100/100, and the final page has to look exactly, pixel for pixel, like <a href="resources /acid3/reference.html">this reference rendering</a>.</p>
3517 <p id="remove-last-child-test">Scripting must be enabled to use this test.</p> 3517 <p id="remove-last-child-test">Scripting must be enabled to use this test.</p>
3518 </body> 3518 </body>
3519 </html> 3519 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698