Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / svg / dom / font-face-elements.html
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <p id="description"></p>
7 <div id="console"></div>
8 <script>
9
10 description("This tests to make sure we have all the font-face related dom bindings.");
11
12 function stringsShouldBeEqual(a, b) {
13   
14 }
15
16 function checkForBinding(namespace, elementName, className) {
17   var element = document.createElementNS(namespace, elementName);
18   if (element.toString() == "[object " + className + "]") {
19     testPassed(elementName + " in " + namespace + " is JS object " + className);
20   } else {
21     testFailed(elementName + " in " + namespace + " is NOT JS object " + className + ", rather: " + element);
22   }
23 }
24
25 var svgNs = "http://www.w3.org/2000/svg";
26
27 checkForBinding(svgNs, "font-face", "SVGFontFaceElement");
28 checkForBinding(svgNs, "font-face-name", "SVGFontFaceNameElement");
29 checkForBinding(svgNs, "font-face-format", "SVGFontFaceFormatElement");
30 checkForBinding(svgNs, "font-face-src", "SVGFontFaceSrcElement");
31 checkForBinding(svgNs, "font-face-uri", "SVGFontFaceUriElement");
32
33
34 </script>
35 </body>
36 </html>