From 377ea33bc8eb87cfa6bd976bd3baa848ee30ae09 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Sat, 28 Jun 2014 11:53:23 -0700 Subject: [PATCH] tests: add test for wombat top --- pywb/rewrite/test/test_rewrite_live.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pywb/rewrite/test/test_rewrite_live.py b/pywb/rewrite/test/test_rewrite_live.py index 3caef706..1b2faacc 100644 --- a/pywb/rewrite/test/test_rewrite_live.py +++ b/pywb/rewrite/test/test_rewrite_live.py @@ -82,6 +82,10 @@ def test_example_domain_specific_3(): # comment out bootloader assert '/* Bootloader.configurePage' in buff +def test_wombat_top(): + status_headers, buff = get_rewritten('https://assets-cdn.github.com/assets/github-0f06d0f46fe7bcfbf31f2380f23aec15ba21b8ec.js', urlrewriter) + + assert 'WB_wombat_top!==window' in buff def test_post(): buff = BytesIO('ABC=DEF')