blob: 64c240f18725350d02a34b49c3b602ebd872f849 [file] [log] [blame]
/*
* Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @description Test that if not valid value set as a stop-color then the value
* is not changed
*/
import "dart:html";
import "../../testcommon.dart";
main() {
var stopElement = document.createElementNS("http://www.w3.org/2000/svg", "stop");
stopElement.style.setProperty("stop-color", "blue");
var colorString = "rgb(00000000000000000000";
stopElement.style.setProperty("stop-color", colorString);
shouldBe(stopElement.style.getPropertyValue("stop-color"), "blue");
}