Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simple test page(javascript test directly embedded into the HTML) failed on JUTE with chrome 15.0 on osx 10.6 #4

Open
baechul opened this issue Nov 1, 2011 · 4 comments

Comments

@baechul
Copy link

baechul commented Nov 1, 2011

A simple test file failed with JUTE and here is the output:

This XML file does not appear to have any style information associated with it. The document tree is shown below.


Test Timed Out: Most likely a Javascript parsing error - try loading /test/simple.html in your browser

Just opening the test page works fine:
yui-min.js:11TestRunner: Testing began at Tue Nov 01 2011 10:24:08 GMT-0700 (PDT).
yui-min.js:11TestRunner: Test suite "Simple Suite" started.
yui-min.js:11TestRunner: Test case "testCaseyui_3_4_1_1_1320168248241_28" started.
yui-min.js:11TestRunner: testSomething: passed.
yui-min.js:11TestRunner: Test case "testCaseyui_3_4_1_1_1320168248241_28" completed.
Passed:1 Failed:0 Total:1 (0 ignored)
yui-min.js:11TestRunner: Test suite "Simple Suite" completed.
Passed:1 Failed:0 Total:1 (0 ignored)
yui-min.js:11TestRunner: Testing completed at Tue Nov 01 2011 10:24:08 GMT-0700 (PDT).
Passed:1 Failed:0 Total:1 (0 ignored)

And here is the test page:

<title>Test Suite Example</title> <script src="http://yui.yahooapis.com/3.4.1/build/yui/yui-min.js"></script>

Simple Test 1

<script language="javascript"> YUI({useBrowserConsole:true}).use("node", "test", function(Y) {
        var suite = new Y.Test.Suite("Simple Suite");
        suite.add(new Y.Test.Case({
            testSomething: function() {
                Y.Assert.areEqual("1", "1", "failed - different");
            }
        }));

        Y.Test.Runner.add(suite);
        Y.Test.Runner.run();
    });
    </script>
    <div id="output"></div>
    <iframe id="scene" width="800" height="600"></iframe>
</body>
@baechul
Copy link
Author

baechul commented Nov 1, 2011

Btw my environment:

heightrush-lm:suite tester$ node --version
v0.4.11
heightrush-lm:suite tester$ npm --version
1.0.103

@zzo
Copy link
Owner

zzo commented Nov 1, 2011

Can you try that using a <script src=""> tag for the javascript instead of including it directly in the HTML? thanks, Mark

@baechul
Copy link
Author

baechul commented Nov 1, 2011

Your suggestion worked. Is that a requirement?

@zzo
Copy link
Owner

zzo commented Nov 1, 2011

Unfortunately it is currently a requirement - I'm looking thru the code now to see how that can be avoided. The issue is the dynamic insertion of the JUTE code - right now that only happens with JS files not HTML files.
If this restriction (your test file must be provided via a <script> tag & not inline in a HTML file) is a blocker for you let me know & I will give it more priority - thanks! Mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants