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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/end-tag-table.html

Issue 2657583002: Import wpt@cf62b859e6b890abc34f8140d185ba91df95c5b6 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/end-tag-table.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/end-tag-table.html b/third_party/WebKit/LayoutTests/external/wpt/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/end-tag-table.html
new file mode 100644
index 0000000000000000000000000000000000000000..feb2eb1080ffa67982ad2175919a7dfa74f2c0a1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/end-tag-table.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>HTML Templates: 'In table' insertion mode: ignore TABLE end tag</title>
+<meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
+<meta name="assert" content="If parser is in 'in table' insertion mode and end tag table is met the ignore this token">
+<link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-table-addition">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+
+
+test(function () {
+ var doc = newHTMLDocument();
+
+ doc.body.innerHTML = '<table id="table">'
+ + '<template id="template">'
+ + '</table>'
+ + '</template>'
+ + '<tr><td></td></tr>'
+ + '</table>';
+
+ var table = doc.querySelector('#table');
+ var template = table.querySelector('#template');
+
+ assert_equals(table.childNodes.length, 2, 'Wrong number of table children');
+ assert_not_equals(template, null, 'Template element must be parsed');
+ assert_equals(table.rows.length, 1, 'Wrong number of table rows');
+ assert_equals(template.childNodes.length, 0, 'Wrong number of the template child nodes');
+ assert_equals(template.content.childNodes.length, 0,
+ 'Wrong number of the template child nodes');
+
+
+}, 'In table insertion mode. Ignore </table> token');
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698