Los Angeles Britney Spears arrived in court giggling Friday but was later heard swearing during a break in a closed hearing that ended with no decision on her bid for shared custody of her two young sons with Kevin Federline.
Lawyer Mark Vincent Kaplan said the court was expected to issue a written ruling by Tuesday after extensive testimony was presented on a number of issues.
Spears did not comment after the hearing. Earlier, she uttered an epithet when a reporter asked how the proceedings were going.
Attorney Sorrell Trope, who represents Spears, said "something has changed, but I can't say what." He said Spears was pleased, but he declined further comment.
Each parent will have a day with the boys this weekend, Kaplan said during a short news conference.
The three-hour hearing was held before Superior Court Commissioner Scott Gordon, who previously said there was evidence that Spears is a "habitual, frequent and continuous" user of drugs and alcohol.
He had withdrawn approval for her to even visit the children after finding she had failed to comply with some conditions for shared custody.
He later withdrew the ban and allowed her to visit Sean Preston, 2, and Jayden James, 1 - but only in the presence of a court-approved monitor.
Spears arrived at the courthouse on Friday eating cheese puffs in her white Mercedes-Benz convertible. She giggled when asked by reporters outside the courtroom if she was nervous.
She was escorted by sheriff's deputies and wore a black print dress and cowgirl boots. Her brown hair was lightly streaked with blonde highlights and she carried a large handbag.
Federline arrived a few minutes after Spears.
Both were under court order to attend the proceedings.