Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: chrome/test/data/android/barcode_detection.html

Issue 2711893003: Shape detection: moar content_browsertests (face, qr/barcode) (Closed)
Patch Set: Make initialization of std::vector<std::vector<float>> explicit to avoid 'error: chosen constructor… Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <title>test</title>
3 <body>
4 </body>
5 <script>
6 var img = new Image();
7
8 img.onload = function() {
9 var detector = new BarcodeDetector();
10
11 detector.detect(img)
12 .then(detectedObjects => {
13 if (detectedObjects.length)
14 document.title = detectedObjects[0].rawValue;
15 else
16 document.title = 'found no shapes';
17 })
18 .catch(error => {
19 document.title = 'Error during detection: ' + error.message;
20 });
21 }
22
23 // "https://chromium.org" encoded as QR code in base64
24 img.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUoAAAFKAQMAAABB54RGA AAABlBMVEX///8AAABVwtN+AAABUUlEQVRoge2ZwY3FIAxELf0CUlJap6QUEMkbbA+wi5Q92l+aOYQQH qcRZiAiFEVRFPVt0tAtcl7iD20HPjeipVDvHPcz6fr4uHXXUaJl0G5i62MnKOua2USrombsw9/wmWhhd HpKtC5qzaDOXjnbf/WVaBIaQqmMBz4TLYX+0TP2eQWIZqLh3wF3I/b3za4/iJZC4yzW7dQL03v3aYmWQ 5d0j6MZZm4LkmgyakNx46F2NNPXQEI0EzUAfCw+jXyiSrQWupZKX4uCI/W+GxLNRj0v4vjsPns+2Yom0 XwUq23ucyJI/EQLoksqcd7dveWXiKaj6yRv4emopkTLoIgjCPtGzZuqRrQU6h3sbrEgJYwlWg0dv8LGZ QeK5mYs0Tqo53y7UtSxzxEtirYDlAHzjWgd1JqZHC/cJr7UV6JZaGgN+/6veV+GRLNRiqIoivoO/QAJk SlOdmbU0AAAAABJRU5ErkJggg==';
25 </script>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698