1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/libeditor/html/tests/browserscope/test_richtext.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,48 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +BrowserScope richtext category tests 1.8 +--> 1.9 +<head> 1.10 + <title>BrowserScope Richtext Tests</title> 1.11 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.12 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.13 + <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> 1.14 + <script type="text/javascript" src="lib/richtext/currentStatus.js"></script> 1.15 +</head> 1.16 +<body> 1.17 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=550569">Mozilla Bug 550569</a> 1.18 +<p id="display"></p> 1.19 +<div id="content"> 1.20 + <iframe src="lib/richtext/richtext/richtext.html"></iframe> 1.21 +</div> 1.22 +<pre id="test"> 1.23 +<script type="application/javascript"> 1.24 + 1.25 +SimpleTest.waitForExplicitFinish(); 1.26 +// Running all of the tests can take a long time, try to account for it 1.27 +SimpleTest.requestLongerTimeout(5); 1.28 + 1.29 +function sendScore(results, continueParams) { 1.30 + ok(results.length > 1, "At least one test should have been run"); 1.31 + for (var i = 1; i < results.length; ++i) { 1.32 + var result = results[i]; 1.33 + [type, command, param, success] = result.split(/[\-=]/); 1.34 + var comp = is; 1.35 + if (isKnownFailure(type, command, param)) { 1.36 + comp = todo_is; 1.37 + } 1.38 + comp(success, "1", "Browserscope richtext category=" + type + 1.39 + " test=" + command + 1.40 + " param=" + param); 1.41 + } 1.42 +} 1.43 + 1.44 +document.getElementsByTagName("iframe")[0].addEventListener("load", function() { 1.45 + SimpleTest.finish(); 1.46 +}, false); 1.47 + 1.48 +</script> 1.49 +</pre> 1.50 +</body> 1.51 +</html>