Revision 87bec7f2841f42f6738d11db4e7986fa95e63ea2 authored by Sergio Villar Senin on 23 March 2018, 11:33:30 UTC, committed by Chromium WPT Sync on 23 March 2018, 11:33:30 UTC
Indefinitely sized containers use the specified definite min-size (if any) as
available space in order to compute the number of auto repeat tracks to
create. A bug in that code was causing the grid to be one track larger than
expected. That was only happening in the case of the free space being
a multiple of the total size of the autorepeat tracks.

Bug: 823140
Change-Id: I6cc13df478da4ba00585fa557012391291941d1a
Reviewed-on: https://chromium-review.googlesource.com/973522
Commit-Queue: Sergio Villar <svillar@igalia.com>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Reviewed-by: Manuel Rego Casasnovas <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#545403}
1 parent b04a923
Raw File
subresource-ed25519.tentative.html
<!DOCTYPE html>
<meta charset=utf-8>
<title>Subresource Integrity</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/sriharness.js"></script>

<div id="log"></div>

<div id="container"></div>
<script>
    var public_key = "qGFmwTxlocg707D1cX4w60iTwtfwbMLf8ITDyfko7s0="
    new SRIScriptTest(
        true,
        "Ed255519 signature, passes.",
        "ed25519-signature.js?1",
        "ed25519-" + public_key
    ).execute();
    new SRIScriptTest(
        false,
        "Ed255519 signature, fails because key is malformed.",
        "ed25519-signature.js?2",
        "ed25519-PotatoPotatoPotato"
    ).execute();
    new SRIScriptTest(
        false,
        "Ed255519 signature, fails because wrong key.",
        "ed25519-signature.js?3",
        "ed25519-PotatoPotatoPotatoPotatoPotatoAvocadoPotato="
    ).execute();
    new SRIScriptTest(
        false,
        "Ed255519 signature, fails because no signature in response header.",
        "ed25519-no-signature.js",
        "ed25519-" + public_key
    ).execute();
    new SRIScriptTest(
        false,
        "Ed255519 signature, fails because incorrect signature in response.",
        "ed25519-broken-signature.js",
        "ed25519-" + public_key
    ).execute();
    new SRIScriptTest(
        true,
        "Ed255519 signature, passes if any (first) of two keys passes.",
        "ed25519-signature.js?4",
        "ed25519-" + public_key +
            " ed25519-PotatoPotatoPotatoPotatoPotatoAvocadoPotato="
    ).execute();
    new SRIScriptTest(
        true,
        "Ed255519 signature, passes if any (second) of two keys passes.",
        "ed25519-signature.js?5",
        "ed25519-PotatoPotatoPotatoPotatoPotatoAvocadoPotato= ed25519-" +
            public_key
    ).execute();
    new SRIScriptTest(
        true,
        "Ed255519 signature, passes because at least one signature matches.",
        "ed25519-multi-signature.js",
        "ed25519-" + public_key
    ).execute();
    new SRIScriptTest(
        true,
        "Ed255519 signature, passes (as above), with commas between values.",
        "ed25519-multi-signature2.js",
        "ed25519-" + public_key
    ).execute();
    new SRIScriptTest(
        true,
        "Ed255519 signature, passes (as above), with multiple headers.",
        "ed25519-multi-signature-headers.js",
        "ed25519-" + public_key
    ).execute();
    new SRIScriptTest(
        true,
        "Ed255519 signature, passes, with multiple signature + multiple keys.",
        "ed25519-multi-signature.js?2",
        "ed25519-PotatoPotatoPotatoPotatoPotatoAvocadoPotato= ed25519-" +
            public_key
    ).execute();
</script>

back to top