Skip to content

Commit

Permalink
Logger and TestLogger now rendering correctly. I need to go through a…
Browse files Browse the repository at this point in the history
…ll the test and example files to remove the cajita.log reassignment of YAHOO.log to enable the messages to show through. Also, due to Caja bug 1103, LogReader skin is not applied unless the LogReader (or TestLogger) is constructed with an existing DOM target.
  • Loading branch information
lsmith committed Aug 19, 2009
1 parent 7b5ecc3 commit 48d69c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/yuitests/yahoo.html
Expand Up @@ -2,7 +2,7 @@
<head> <head>
<title>YUI Tests</title> <title>YUI Tests</title>
<link type="text/css" rel="stylesheet" href="css/logger/assets/logger.css" /> <link type="text/css" rel="stylesheet" href="css/logger/assets/logger.css" />
<link type="text/css" rel="stylesheet" href="css/yuitest/assets/yuitest.css" /> <link type="text/css" rel="stylesheet" href="css/yuitest/assets/testlogger.css" />


<style type="text/css"> <style type="text/css">
#xframe { #xframe {
Expand All @@ -13,7 +13,7 @@


<script type="text/javascript"> <script type="text/javascript">


YAHOO.log = cajita.log; //YAHOO.log = cajita.log;


var g_modules=[]; var g_modules=[];


Expand All @@ -26,6 +26,7 @@


</head> </head>
<body> <body>
<div id="logr"></div>
<iframe name="xframe" id="xframe" src="assets/xframe.html"></iframe> <iframe name="xframe" id="xframe" src="assets/xframe.html"></iframe>
<h1>YAHOO test page</h1> <h1>YAHOO test page</h1>
<p>This page contains tests being run by yuitest, the results of which<br /> <p>This page contains tests being run by yuitest, the results of which<br />
Expand Down Expand Up @@ -424,7 +425,7 @@ <h1>YAHOO test page</h1>
// YAHOO.util.Event.onDomReady(function (){ // need to wait for the frame to load // YAHOO.util.Event.onDomReady(function (){ // need to wait for the frame to load
// YAHOO.util.Event.on(window, "load", function (){ // YAHOO.util.Event.on(window, "load", function (){
//create the logger //create the logger
var logger = new YAHOO.tool.TestLogger(); var logger = new YAHOO.tool.TestLogger('logr');


//add the tests //add the tests
YAHOO.tool.TestRunner.add(suite); YAHOO.tool.TestRunner.add(suite);
Expand Down

0 comments on commit 48d69c2

Please sign in to comment.