blob: 0e4f948224700f43aa9b97a236e85f351625c8d3 [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 This tests that a Load event is fired at a programmatically
* inserted HTML Style element once it loads its style sheet.
import "dart:html";
import "../../../../Utils/expect.dart";
import "../../../../Utils/async_utils.dart";
import "../../../testcommon.dart";
import "../HTMLLinkElement/resources/link-load-utilities.dart";
main() {
var style =
style.onLoad.listen((_) {
style.onError.listen((_) {
testFailed('Fired Error event. Should have fired Load event.');