From c2ca9066c6fd760bd6ef5d2f8f0530a89bfa7b66 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Tue, 24 Oct 2017 23:29:55 -0400 Subject: WIP: Feature/pip video 2 (#405) * Add dependency * Test new video view * Add initial video bindings * Implement drag to dismiss * Begin initial integration * Fix typo * Fix up url formatter * Update changelog * Create first fully integrated video build * Update translations * Update translations 2 --- .../kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'app/src/test') diff --git a/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt index 3a87a697..57589b5e 100644 --- a/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt +++ b/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt @@ -1,6 +1,9 @@ package com.pitchedapps.frost.facebook +import okhttp3.HttpUrl +import okio.Utf8 import org.junit.Test +import java.net.URLDecoder import kotlin.test.assertEquals @@ -26,11 +29,6 @@ class FbUrlTest { assertFbFormat("$FB_URL_BASE${url.substring(1)}", url) } - @Test - fun redirect() { - assertFbFormat("${FB_URL_BASE}relative/?asdf=1234&hjkl=7890", "https://touch.facebook.com/l.php?u=${FB_URL_BASE}relative/&asdf=1234&hjkl=7890") - } - @Test fun discard() { val prefix = "$FB_URL_BASE?test=1234" @@ -43,11 +41,4 @@ class FbUrlTest { assertFbFormat("${FB_URL_BASE}relative", "$FB_URL_BASE/relative") } - @Test - fun css() { - val expected = "https://test.com?efg=hi&oh=bye&oe=apple%3Fornot" - val orig = "https\\3a //test.com?efg=hi&oh=bye&oe=apple\\3F ornot" - assertFbFormat(expected, orig) - } - } \ No newline at end of file -- cgit v1.2.3