									d.callback(true);
								}
							}, 50);
						});
						return d;
					}
				}
			]);

			doh.register("stylesheets", [
				{
					name: "add sheet",
					runTest: function(){
						editor.addStyleSheet('test_editor.css');

						// Wait for stylesheet to take effect and then check if <h1> has border.
						// Not checking background color because it could be "red" or #FF0000 or rgb(...
						var d = new doh.Deferred();
						setTimeout(d.getTestCallback(function(){
							var h1styles = query("