Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: tests/test_packagerEdge.py

Issue 29367145: Issue 4719 - Edge packager does not generate an info module (Closed)
Patch Set: Remove the redundant whitespace. Created Dec. 22, 2016, 4:24 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/metadata.edge ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This Source Code Form is subject to the terms of the Mozilla Public 1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 4
5 import ConfigParser 5 import ConfigParser
6 import json 6 import json
7 import os 7 import os
8 import shutil 8 import shutil
9 import xml.etree.ElementTree as ET 9 import xml.etree.ElementTree as ET
10 import zipfile 10 import zipfile
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 def test_create_build(tmpdir, srcdir): 161 def test_create_build(tmpdir, srcdir):
162 out_file = str(tmpdir.join('abp.appx')) 162 out_file = str(tmpdir.join('abp.appx'))
163 packagerEdge.createBuild(str(srcdir), outFile=out_file, releaseBuild=True) 163 packagerEdge.createBuild(str(srcdir), outFile=out_file, releaseBuild=True)
164 appx = zipfile.ZipFile(out_file) 164 appx = zipfile.ZipFile(out_file)
165 165
166 names = set(appx.namelist()) 166 names = set(appx.namelist())
167 assert 'AppxManifest.xml' in names 167 assert 'AppxManifest.xml' in names
168 assert 'AppxBlockMap.xml' in names 168 assert 'AppxBlockMap.xml' in names
169 assert '[Content_Types].xml' in names 169 assert '[Content_Types].xml' in names
170 assert 'Extension/lib/info.js' in names
170 171
171 assert 'devbuild-marker' not in appx.read('AppxManifest.xml') 172 assert 'devbuild-marker' not in appx.read('AppxManifest.xml')
172 assert appx.read('Assets/logo_44.png') == '44' 173 assert appx.read('Assets/logo_44.png') == '44'
173 assert appx.read('Extension/icons/abp-44.png') == '44' 174 assert appx.read('Extension/icons/abp-44.png') == '44'
174 175
175 176
176 def test_create_devbuild(tmpdir, srcdir): 177 def test_create_devbuild(tmpdir, srcdir):
177 out_file = str(tmpdir.join('abp.appx')) 178 out_file = str(tmpdir.join('abp.appx'))
178 packagerEdge.createBuild(str(srcdir), outFile=out_file, releaseBuild=False) 179 packagerEdge.createBuild(str(srcdir), outFile=out_file, releaseBuild=False)
179 appx = zipfile.ZipFile(out_file) 180 appx = zipfile.ZipFile(out_file)
180 assert 'devbuild-marker' in appx.read('AppxManifest.xml') 181 assert 'devbuild-marker' in appx.read('AppxManifest.xml')
OLDNEW
« no previous file with comments | « tests/metadata.edge ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld