mirror of
https://github.com/NASAWorldWind/WebWorldWind.git
synced 2026-01-25 15:23:04 +00:00
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
/*
|
|
* Copyright (C) 2014 United States Government as represented by the Administrator of the
|
|
* National Aeronautics and Space Administration. All Rights Reserved.
|
|
*/
|
|
define([
|
|
'src/formats/kml/KmlAbstractView',
|
|
'src/formats/kml/KmlTimeSpan',
|
|
'src/util/XmlDocument'
|
|
], function ( KmlAbstractView,
|
|
KmlTimeSpan,
|
|
XmlDocument){
|
|
"use strict";
|
|
|
|
describe("KmlAbstractViewTest", function () {
|
|
var validKml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
|
|
"<kml xmlns=\"http://www.opengis.net/kml/2.2\">" +
|
|
"<AbstractView>" +
|
|
"<TimeSpan></TimeSpan>" +
|
|
"</AbstractView>" +
|
|
"</kml>";
|
|
var kmlRepresentation = new XmlDocument(validKml).dom();
|
|
var overlay = new KmlAbstractView({
|
|
objectNode: kmlRepresentation.getElementsByTagName("AbstractView")[0]
|
|
});
|
|
|
|
it ("should have the prototype property of KmlTimeSpan", function () {
|
|
expect(overlay.kmlTimePrimitive instanceof KmlTimeSpan).toBeTruthy();
|
|
})
|
|
});
|
|
});
|
|
|