Commit 385c6a45 authored by Jesse Schettler's avatar Jesse Schettler Committed by Commit Bot

scanning: Reorder file type options

Reorder the file type options to match the spec.

Bug: 1059779
Change-Id: I1dc213f2cfb1f1b388288552b8391ef69ef3e38d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2529236
Commit-Queue: Jesse Schettler <jschettler@chromium.org>
Reviewed-by: default avatarZentaro Kavanagh <zentaro@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825954}
parent 2f48b694
...@@ -41,8 +41,8 @@ export function fileTypeSelectTest() { ...@@ -41,8 +41,8 @@ export function fileTypeSelectTest() {
assertFalse(select.disabled); assertFalse(select.disabled);
assertEquals(3, select.length); assertEquals(3, select.length);
assertEquals('JPG', select.options[0].textContent.trim()); assertEquals('JPG', select.options[0].textContent.trim());
assertEquals('PDF', select.options[1].textContent.trim()); assertEquals('PNG', select.options[1].textContent.trim());
assertEquals('PNG', select.options[2].textContent.trim()); assertEquals('PDF', select.options[2].textContent.trim());
assertEquals(FileType.PNG.toString(), select.value); assertEquals(FileType.PNG.toString(), select.value);
// Selecting a different option should update the selected value. // Selecting a different option should update the selected value.
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
values they correspond to. --> values they correspond to. -->
<!-- TODO(jschettler): Change default back to PDF when it's supported. --> <!-- TODO(jschettler): Change default back to PDF when it's supported. -->
<option value="0">[[i18n('jpgOptionText')]]</option> <option value="0">[[i18n('jpgOptionText')]]</option>
<option value="1">[[i18n('pdfOptionText')]]</option>
<option value="2" selected>[[i18n('pngOptionText')]]</option> <option value="2" selected>[[i18n('pngOptionText')]]</option>
<option value="1">[[i18n('pdfOptionText')]]</option>
</select> </select>
</div> </div>
</scan-settings-section> </scan-settings-section>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment