/*
 * Copyright (C) 2014 United States Government as represented by the Administrator of the
 * National Aeronautics and Space Administration. All Rights Reserved.
 */
require([
    'src/util/XmlDocument'
], function(
    XmlDocument
){
    describe("XmlDocument", function() {
        it("testGettingDomOfValidXml", function() {
            var xmlDocument = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
                "<kml xmlns=\"http://www.opengis.net/kml/2.2\">" +
                "<Placemark>" +
                "   <Point>" +
                "       <coordinates>-122.0822035425683,37.42228990140251,0</coordinates>" +
                "   </Point>" +
                "</Placemark>" +
                "</kml>";
            var document = new XmlDocument(xmlDocument);
            var resultingDom = document.dom();

            expect(resultingDom.childNodes.length).toEqual(1);
        });

        it("testGettingDomOfInvalidXml", function() {
            var invalidDocument = "RandomData";
            var document = new XmlDocument(invalidDocument);
            try {
                var resultingDom = document.dom();
                fail("Exception should have been thrown.");
            } catch(e) {
                expect("ArgumentError").toEqual(e.name);
            }
        });
    });
});
@@ -897,409 +897,8 @@
  %7D);
-%0A%0A        it(%22testGettingDomOfInvalidXml%22, function() %7B%0A            var invalidDocument = %22RandomData%22;%0A            var document = new XmlDocument(invalidDocument);%0A            try %7B%0A                var resultingDom = document.dom();%0A                fail(%22Exception should have been thrown.%22);%0A            %7D catch(e) %7B%0A                expect(%22ArgumentError%22).toEqual(e.name);%0A            %7D%0A        %7D);
 %0A   

Remove this test as in different browsers the behavior differs. Phantomjs behavior is different to Firefox, Chrome and IE.