Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / custom / invalid-first-char-combinators.html
blobf69422a0dfc238ea453bfbc2aaa525cb4e0911b0
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
5 <script>
6 test(function () {
7 var invalidCombinators = [ 0x0B83, 0x0F88, 0x0F89, 0x0F8A, 0x0F8B ];
9 for (var i = 0; i < invalidCombinators.length; i++) {
10 var invalidCombinator = String.fromCharCode(invalidCombinators[i]) + '-xfoo';
11 assert_throws('SYNTAX_ERR', function () {
12 document.registerElement(invalidCombinator);
13 }, 'registering custom element: *' +
14 invalidCombinator + '* should throw syntax error');
17 }, 'registering invalid first letter combinators, not covered in Document::validNames');
18 </script>