All Downloads are FREE. Search and download functionalities are using the official Maven repository.

test.gov.nasa.worldwind.render.BalloonSizeTest.html Maven / Gradle / Ivy

Go to download

World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.

There is a newer version: 2.0.0-986
Show newest version







    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
  1. Run gov.nasa.worldwind.render.BrowserBalloonSizeTest
  2. The test class creates several balloons with different size configurations.
  3. Confirm that each balloon is sized correctly.
    1. Should be 200 pixels square.
    2. Text should wrap to the default balloon width, and the height should fit the content.
    3. Should be 200 pixels tall, and the width should fit the content.
    4. 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
  1. Click the placemark "Simple balloon".
  2. 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
  1. Click the placemark "Simple balloon with Doctype".
  2. 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
  1. Click on the placemark "Description with long URL"
  2. Confirm that the is balloon sized to a accommodate the full width of the URL on the first line.
  3. Confirm that the balloon does not contain excess empty space below the text.

Wide balloon

Test file: testData/KML/BalloonSize.kml

Test steps

  1. Click the placemark "Wide balloon".
  2. 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
  1. Click on any of the biodiversity placemarks to open a balloon.
  2. 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

  1. Click on any of the wind indicator placemarks to open the balloon.
  2. 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

  1. Click on the "Start" placemark to open the balloon.
  2. Click on the link "Remote HTML doc". The browser will navigate to the NASA WorldWind site.
  3. Confirm that the balloon does not change size when the page navigates.
  4. Click "Back"
  5. Confirm that the balloon does not change size when it navigates back to original content.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy