コード例 #1
0
ファイル: test_sourcemaps.py プロジェクト: yuvrajm/sentry
    def test_indexed_inline(self):
        indexed_sourcemap = sourcemap_to_index(indexed_sourcemap_example)

        sources = get_inline_content_sources(indexed_sourcemap, 'https://example.com/static/')
        assert sources == [
            ('https://example.com/the/root/one.js', [' ONE.foo = function (bar) {', '   return baz(bar);', ' };']),
            ('https://example.com/the/root/two.js', [' TWO.inc = function (n) {', '   return n + 1;', ' };'])
        ]
コード例 #2
0
ファイル: test_sourcemaps.py プロジェクト: ForkRepo/sentry
    def test_indexed_inline(self):
        indexed_sourcemap = sourcemap_to_index(indexed_sourcemap_example)

        sources = get_inline_content_sources(indexed_sourcemap, "https://example.com/static/")
        assert sources == [
            ("https://example.com/the/root/one.js", [" ONE.foo = function (bar) {", "   return baz(bar);", " };"]),
            ("https://example.com/the/root/two.js", [" TWO.inc = function (n) {", "   return n + 1;", " };"]),
        ]
コード例 #3
0
ファイル: test_sourcemaps.py プロジェクト: ForkRepo/sentry
    def test_no_inline(self):
        # basic sourcemap fixture has no inlined sources, so expect an empty list
        indexed_sourcemap = sourcemap_to_index(sourcemap)

        sources = get_inline_content_sources(indexed_sourcemap, "https://example.com/static/")
        assert sources == []
コード例 #4
0
ファイル: test_sourcemaps.py プロジェクト: yuvrajm/sentry
    def test_no_inline(self):
        # basic sourcemap fixture has no inlined sources, so expect an empty list
        indexed_sourcemap = sourcemap_to_index(sourcemap)

        sources = get_inline_content_sources(indexed_sourcemap, 'https://example.com/static/')
        assert sources == []