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

Side by Side Diff: LayoutTests/svg/dom/font-face-elements.html

Issue 656913006: Remove SVG fonts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update tests for landing Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
(Empty)
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 bindi ngs.");
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 " + classNa me + ", 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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698