gecko-dev/dom/manifest/test
Andrew Halberstadt 57887f2601 Bug 1328830 - [manifestparser] Check line continuation before looking for next key, r=jmaher
Currently manifestparser will only look for line continuations *after* looking for a key. This means
that line continuations cannot contain key separators. For example, this:

    [test]
    foo=
      bar=baz

gets treated as:

    {'name': 'test', 'foo': '', 'bar': 'baz'}

Here, bar=baz will be treated as a new key/value pair despite the indentation. This patch switches
the order around, so we look for a continuation first. Now, it is only treated as a continuation if
the indent is greater than the indent of the preceding key.

So this manifest:

    [test]
    foo=bar
      baz=fleem

is a continuation and results in:

    {'name': 'test', 'foo': 'bar\nbaz=fleem'}

But this manifest:

    [test]
      foo=bar
      baz=fleem

is not a continuation, and yields:

    {'name': 'test', 'foo': 'bar', 'baz': 'fleem'}

MozReview-Commit-ID: FAMP5TUIo9q

--HG--
extra : rebase_source : 624c53cfe0565374c1224dd86a3fffc8831279d3
2017-07-19 14:48:01 -04:00
..
blue-150.png Bug 1234558 - Use icons from app manifest. r=marcosc, r=sebastian 2017-01-17 18:24:53 +00:00
browser.ini Bug 1321320 - Track installed manifests. r=marcos, r=s.kaspari 2017-02-17 08:24:06 +00:00
browser_ManifestFinder_browserHasManifestLink.js Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
browser_ManifestIcons_browserFetchIcon.js Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
browser_ManifestObtainer_obtain.js Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
browser_Manifest_install.js Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
browser_fire_appinstalled_event.js Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
common.js
file_reg_appinstalled_event.html
file_testserver.sjs Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj 2017-08-04 17:49:22 +09:00
icon.png Bug 1234558 - Use icons from app manifest. r=marcosc, r=sebastian 2017-01-17 18:24:53 +00:00
manifestLoader.html
mochitest.ini Bug 1328830 - [manifestparser] Check line continuation before looking for next key, r=jmaher 2017-07-19 14:48:01 -04:00
red-50.png Bug 1234558 - Use icons from app manifest. r=marcosc, r=sebastian 2017-01-17 18:24:53 +00:00
resource.sjs
test_ImageObjectProcessor_sizes.html
test_ImageObjectProcessor_src.html
test_ImageObjectProcessor_type.html
test_ManifestProcessor_JSON.html
test_ManifestProcessor_background_color.html Bug 1295456 - Update Gecko tests for css-color-4 color function changes. r=dholbert 2016-10-16 03:15:36 +08:00
test_ManifestProcessor_dir.html
test_ManifestProcessor_display.html
test_ManifestProcessor_icons.html
test_ManifestProcessor_lang.html
test_ManifestProcessor_name_and_short_name.html
test_ManifestProcessor_orientation.html
test_ManifestProcessor_scope.html
test_ManifestProcessor_start_url.html
test_ManifestProcessor_theme_color.html Bug 1295456 - Update Gecko tests for css-color-4 color function changes. r=dholbert 2016-10-16 03:15:36 +08:00
test_ManifestProcessor_warnings.html
test_window_onappinstalled_event.html Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00