#158 new
nickg

docuent.getElementsByTag('head') is borking in unit tests

Reported by nickg | April 18th, 2010 @ 04:26 AM

Had to undo this test since it was not finding a head element. Not sure why.

+    //
+    // this document does not have a head which is a problem in an of itself
+    //document.getElementsByTagName('head')[0].appendChild(element);
+    //equals(document.ASDFASDF, 'QWERQWER', 'script appended to head executes');

Comments and changes to this ticket

  • gleneivey

    gleneivey April 18th, 2010 @ 08:34 AM

    Only because the boot.js was changed so that dist/window.js was no longer included. No window.js => window.location="" does nothing => window.document not populated from index.html => no element. There's a longer explanation of this (and how I think we should solve it by always using env.rhino.js for ant tests) in my email to envjs@googlegroups.com earlier today.

  • nickg

    nickg April 18th, 2010 @ 08:38 AM

    Hi Glen,

    yeah I hear yeah, I just filled this ticket so I did't forget.

    I have to run out the door, but want to read through your email more carefully, but overall agree.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

a javascript browser environment

People watching this ticket

Pages