Fixing MediaTest#testAddSource to only compare the end of the src to the src that was set.  Some browsers automatically prepend the host path to the src file name.

Review at http://gwt-code-reviews.appspot.com/1427811


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10121 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/test/com/google/gwt/media/client/MediaTest.java b/user/test/com/google/gwt/media/client/MediaTest.java
index 3997ae4..5c9a5cc 100644
--- a/user/test/com/google/gwt/media/client/MediaTest.java
+++ b/user/test/com/google/gwt/media/client/MediaTest.java
@@ -97,15 +97,15 @@
 
     // Add some source elements.
     SourceElement source0 = media.addSource("file.ogg", "audio/ogg");
-    assertEquals("file.ogg", source0.getSrc());
+    assertTrue(source0.getSrc().endsWith("file.ogg"));
     assertEquals("audio/ogg", source0.getType());
     SourceElement source1 = media.addSource("file.ogv", "video/ogg");
-    assertEquals("file.ogv", source1.getSrc());
+    assertTrue(source1.getSrc().endsWith("file.ogv"));
     assertEquals("video/ogg", source1.getType());
 
     // Add a source without a type.
     SourceElement source2 = media.addSource("file.mp3");
-    assertEquals("file.mp3", source2.getSrc());
+    assertTrue(source2.getSrc().endsWith("file.mp3"));
 
     // Check that the sources are a children of the media.
     assertEquals(media.getElement(), source0.getParentElement());