Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/servo/tests/unit/style/parsing/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 574 B image not shown  

Quelle  transition_duration.rs   Sprache: unbekannt

 
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */

use parsing::parse;
use style::properties::longhands::transition_duration;

#[test]
fn test_positive_transition_duration() {
    assert!(parse(transition_duration::parse, "5s").is_ok());
    assert!(parse(transition_duration::parse, "0s").is_ok());
}

#[test]
fn test_negative_transition_duration() {
    assert!(parse(transition_duration::parse, "-5s").is_err());
}

[ Dauer der Verarbeitung: 0.3 Sekunden  (vorverarbeitet)  ]