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

Side by Side Diff: tests/test_packagerEdge.py

Issue 29399569: Issue 5060 - Move require into modules template, make info a module (Closed)
Patch Set: Addressed more feedback Created March 31, 2017, 3:15 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
« templates/modules.js.tmpl ('K') | « templates/modules.js.tmpl ('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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 def test_create_build(tmpdir, srcdir): 240 def test_create_build(tmpdir, srcdir):
241 out_file = str(tmpdir.join('abp.appx')) 241 out_file = str(tmpdir.join('abp.appx'))
242 packagerEdge.createBuild(str(srcdir), outFile=out_file, releaseBuild=True) 242 packagerEdge.createBuild(str(srcdir), outFile=out_file, releaseBuild=True)
243 appx = zipfile.ZipFile(out_file) 243 appx = zipfile.ZipFile(out_file)
244 244
245 names = set(appx.namelist()) 245 names = set(appx.namelist())
246 assert 'AppxManifest.xml' in names 246 assert 'AppxManifest.xml' in names
247 assert 'AppxBlockMap.xml' in names 247 assert 'AppxBlockMap.xml' in names
248 assert '[Content_Types].xml' in names 248 assert '[Content_Types].xml' in names
249 assert 'Extension/lib/info.js' in names
250 249
251 assert 'devbuild-marker' not in appx.read('AppxManifest.xml') 250 assert 'devbuild-marker' not in appx.read('AppxManifest.xml')
252 assert appx.read('Assets/logo_44.png') == '44' 251 assert appx.read('Assets/logo_44.png') == '44'
253 assert appx.read('Extension/icons/abp-44.png') == '44' 252 assert appx.read('Extension/icons/abp-44.png') == '44'
254 253
255 254
256 def test_create_devbuild(tmpdir, srcdir): 255 def test_create_devbuild(tmpdir, srcdir):
257 out_file = str(tmpdir.join('abp.appx')) 256 out_file = str(tmpdir.join('abp.appx'))
258 packagerEdge.createBuild(str(srcdir), outFile=out_file, releaseBuild=False) 257 packagerEdge.createBuild(str(srcdir), outFile=out_file, releaseBuild=False)
259 appx = zipfile.ZipFile(out_file) 258 appx = zipfile.ZipFile(out_file)
260 assert 'devbuild-marker' in appx.read('AppxManifest.xml') 259 assert 'devbuild-marker' in appx.read('AppxManifest.xml')
OLDNEW
« templates/modules.js.tmpl ('K') | « templates/modules.js.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld