test.gov.nasa.worldwind.render.BalloonSizeTest.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwindx Show documentation
Show all versions of worldwindx Show documentation
World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.
BrowserBalloon Size Manual Tests
BrowserBalloon Auto-size Manual Tests
Describes the steps to execute a manual validation test of the BrowserBalloon size-to-fit-content feature.
Open the test files in gov.nasa.worldwind.examples.kml.KMLViewer. Click on the placemarks to open the description
balloons.
Basic sizing
Test class: gov.nasa.worldwind.render.BrowserBalloonSizeTest
Test steps
- Run gov.nasa.worldwind.render.BrowserBalloonSizeTest
- The test class creates several balloons with different size configurations.
- Confirm that each balloon is sized correctly.
- Should be 200 pixels square.
- Text should wrap to the default balloon width, and the height should fit the content.
- Should be 200 pixels tall, and the width should fit the content.
- Should be 100 pixels wide, and the height should fit the content.
Note that on Windows the native web browser reserves space for a vertical scroll bar even if the scroll bar is not
required, so the balloons will include a little extra space on the right side.
Simple text description
Test file: testData/KML/BalloonSize.kml
Test steps
- Click the placemark "Simple balloon".
- Confirm that the balloon is sized to show all the text without extra space. There should not be any scroll bars
in the balloon.
Description with Doctype
Test file: testData/KML/BalloonSize.kml
Test steps
- Click the placemark "Simple balloon with Doctype".
- Confirm that the balloon is sized to show all the text without extra space. There should not be any scroll bars
in the balloon.
Text with a long URL
Test file: testData/KML/BalloonSize.kml
Test steps
- Click on the placemark "Description with long URL"
- Confirm that the is balloon sized to a accommodate the full width of the URL on the first line.
- Confirm that the balloon does not contain excess empty space below the text.
Wide balloon
Test file: testData/KML/BalloonSize.kml
Test steps
- Click the placemark "Wide balloon".
- Confirm that the balloon shows a horizontal scroll bar, but does not show a vertical scroll bar.
Rich content balloon
Test file: http://wwdev.tomgaskins.net/KMLTestFiles/Biodiversity_Hotspots_nw.kmz
Test steps
- Click on any of the biodiversity placemarks to open a balloon.
- Confirm that the balloon is sized to accommodate the full width of the content without a horizontal scroll
bar. Depending on the size of the table and the size of the window, a vertical scroll bar may be required.
Data table
Test site: http://wwdev.tomgaskins.net/KMLTestFiles/wind.kmz
Test steps
- Click on any of the wind indicator placemarks to open the balloon.
- Confirm that the balloon is sized to display the full width of the data table without a horizontal scroll bar.
Depending on the size of the table and the size of the window, a vertical scroll bar may be required.
Navigation
Test file: testData/BalloonLinks.kml
Test steps
- Click on the "Start" placemark to open the balloon.
- Click on the link "Remote HTML doc". The browser will navigate to the NASA WorldWind site.
- Confirm that the balloon does not change size when the page navigates.
- Click "Back"
- Confirm that the balloon does not change size when it navigates back to original content.