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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Window/custom-constructors.html

Issue 2846523002: Update the stringifier behavior for DOMMatrixReadOnly (Closed)
Patch Set: Update the stringifier behavior for DOMMatrixReadOnly Created 3 years, 6 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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../resources/js-test.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <div id="description"></div> 6 <div id="description"></div>
7 <div id="console"></div> 7 <div id="console"></div>
8 <script> 8 <script>
9 description('Test constructors for classes in Window'); 9 description('Test constructors for classes in Window');
10 if (window.testRunner) { 10 if (window.testRunner) {
11 testRunner.dumpAsText(); 11 testRunner.dumpAsText();
12 } 12 }
13 13
14 shouldBe("Audio.prototype.toString.call(new Audio)", "'[object HTMLAudioElem ent]'"); 14 shouldBe("Audio.prototype.toString.call(new Audio)", "'[object HTMLAudioElem ent]'");
15 shouldBe("Image.prototype.toString.call(new Image)", "'[object HTMLImageElem ent]'"); 15 shouldBe("Image.prototype.toString.call(new Image)", "'[object HTMLImageElem ent]'");
16 shouldBe("Option.prototype.toString.call(new Option)", "'[object HTMLOptionE lement]'"); 16 shouldBe("Option.prototype.toString.call(new Option)", "'[object HTMLOptionE lement]'");
17 shouldBe("WebKitCSSMatrix.prototype.toString.call(new WebKitCSSMatrix)", "'m atrix(1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000)'"); 17 shouldBe("WebKitCSSMatrix.prototype.toString.call(new WebKitCSSMatrix)", "'m atrix(1, 0, 0, 1, 0, 0)'");
18 shouldBe("WebKitCSSMatrix.prototype.toString.call(new WebKitCSSMatrix())", " 'matrix(1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000)'"); 18 shouldBe("WebKitCSSMatrix.prototype.toString.call(new WebKitCSSMatrix())", " 'matrix(1, 0, 0, 1, 0, 0)'");
19 shouldThrow("new WebKitCSSMatrix(null)"); 19 shouldThrow("new WebKitCSSMatrix(null)");
20 shouldThrow("new WebKitCSSMatrix(undefined)"); 20 shouldThrow("new WebKitCSSMatrix(undefined)");
21 shouldBe("XMLHttpRequest.prototype.toString.call(new XMLHttpRequest)", "'[ob ject XMLHttpRequest]'"); 21 shouldBe("XMLHttpRequest.prototype.toString.call(new XMLHttpRequest)", "'[ob ject XMLHttpRequest]'");
22 shouldBe("XSLTProcessor.prototype.toString.call(new XSLTProcessor)", "'[obje ct XSLTProcessor]'"); 22 shouldBe("XSLTProcessor.prototype.toString.call(new XSLTProcessor)", "'[obje ct XSLTProcessor]'");
23 </script> 23 </script>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698