Browse Source

Make it compatible with Safari.. the open function does not return any document.

Thanks to Ingmar Stein
PR: 26953


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277013 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 20 years ago
parent
commit
d809433494
3 changed files with 6 additions and 3 deletions
  1. +2
    -1
      src/etc/junit-frames-xalan1.xsl
  2. +2
    -1
      src/etc/junit-frames.xsl
  3. +2
    -1
      src/etc/junit-noframes.xsl

+ 2
- 1
src/etc/junit-frames-xalan1.xsl View File

@@ -202,7 +202,8 @@ h6 {
<script type="text/javascript" language="JavaScript"><![CDATA[ <script type="text/javascript" language="JavaScript"><![CDATA[
function displayProperties (name) { function displayProperties (name) {
var win = window.open('','JUnitSystemProperties','scrollbars=1,resizable=1'); var win = window.open('','JUnitSystemProperties','scrollbars=1,resizable=1');
var doc = win.document.open();
var doc = win.document;
doc.open();
doc.write("<html><head><title>Properties of " + name + "</title>"); doc.write("<html><head><title>Properties of " + name + "</title>");
doc.write("<style type=\"text/css\">"); doc.write("<style type=\"text/css\">");
doc.write("body {font:normal 68% verdana,arial,helvetica; color:#000000; }"); doc.write("body {font:normal 68% verdana,arial,helvetica; color:#000000; }");


+ 2
- 1
src/etc/junit-frames.xsl View File

@@ -202,7 +202,8 @@ h6 {
<script type="text/javascript" language="JavaScript"><![CDATA[ <script type="text/javascript" language="JavaScript"><![CDATA[
function displayProperties (name) { function displayProperties (name) {
var win = window.open('','JUnitSystemProperties','scrollbars=1,resizable=1'); var win = window.open('','JUnitSystemProperties','scrollbars=1,resizable=1');
var doc = win.document.open();
var doc = win.document;
doc.open();
doc.write("<html><head><title>Properties of " + name + "</title>"); doc.write("<html><head><title>Properties of " + name + "</title>");
doc.write("<style type=\"text/css\">"); doc.write("<style type=\"text/css\">");
doc.write("body {font:normal 68% verdana,arial,helvetica; color:#000000; }"); doc.write("body {font:normal 68% verdana,arial,helvetica; color:#000000; }");


+ 2
- 1
src/etc/junit-noframes.xsl View File

@@ -92,7 +92,8 @@
<script type="text/javascript" language="JavaScript"><![CDATA[ <script type="text/javascript" language="JavaScript"><![CDATA[
function displayProperties (name) { function displayProperties (name) {
var win = window.open('','JUnitSystemProperties','scrollbars=1,resizable=1'); var win = window.open('','JUnitSystemProperties','scrollbars=1,resizable=1');
var doc = win.document.open();
var doc = win.document;
doc.open();
doc.write("<html><head><title>Properties of " + name + "</title>"); doc.write("<html><head><title>Properties of " + name + "</title>");
doc.write("<style>") doc.write("<style>")
doc.write("body {font:normal 68% verdana,arial,helvetica; color:#000000; }"); doc.write("body {font:normal 68% verdana,arial,helvetica; color:#000000; }");


Loading…
Cancel
Save