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

Side by Side Diff: LayoutTests/editing/execCommand/queryCommandValue-unsupported-commands.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script src="../../fast/js/resources/js-test-pre.js"></script> 3 <script src="../../fast/js/resources/js-test-pre.js"></script>
4 <div id="test" contenteditable></div> 4 <div id="test" contenteditable></div>
5 <script> 5 <script>
6 description("Tests queryCommandValue returns empty string for unsupported comman ds"); 6 description("Tests queryCommandValue returns empty string for unsupported comman ds");
7 7
8 var test = document.getElementById('test'); 8 var test = document.getElementById('test');
9 test.focus(); 9 test.focus();
10 document.execCommand('fontSize', false, 5); 10 document.execCommand('fontSize', false, 5);
11 shouldBe("document.queryCommandValue('foofoo')", "''"); 11 shouldBe("document.queryCommandValue('foofoo')", "''");
12 shouldBe("typeof document.queryCommandValue('foofoo')", "'string'"); 12 shouldBe("typeof document.queryCommandValue('foofoo')", "'string'");
13 shouldBe("document.queryCommandValue('fontSize')", "'5'"); 13 shouldBe("document.queryCommandValue('fontSize')", "'5'");
14 shouldBe("typeof document.queryCommandValue('fontSize')", "'string'"); 14 shouldBe("typeof document.queryCommandValue('fontSize')", "'string'");
15 </script> 15 </script>
16 <script src="../../fast/js/resources/js-test-post.js"></script>
17 </html> 16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698