QA/TDAI/Projects/Test Suite Integration/Example

From MozillaWiki
Jump to: navigation, search

This is a RAKE-generated script file that takes a set of javascript tests and puts them into an HTML page for testing.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" xml:lang="en" lang="en">
  <title>Prototype Unit test file | Ajax</title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <script type="text/javascript" charset="utf-8">
    var eventResults = {};
    var originalElement = window.Element;
  <script src="../../../dist/prototype.js" type="text/javascript"></script>
  <script src="../../lib/unittest.js" type="text/javascript"></script>
  <link rel="stylesheet" href="../../test.css" type="text/css" />
    <script src="../fixtures/ajax.js" type="text/javascript" charset="utf-8"></script>

  <script src="../ajax_test.js" type="text/javascript"></script>
<h1>Prototype Unit test file</h1>

<!-- This file is programmatically generated. Do not attempt to modify it. Instead, modify  -->

<!-- Log output start -->
<div id="testlog"></div>
<!-- Log output end -->

<!-- HTML Fixtures start -->
<div id="content"></div>
<div id="content2" style="color:red"></div>

<!-- HTML Fixtures end -->
<script type="text/javascript" charset="utf-8">
  eventResults.endOfDocument = true;